ServerServlet currently offers mode 1 where it is initialized with the default Component class that is configured via restlet.xml if it exists. It also offers mode 2 where it is initialized with custom Component subclass specified by the servlet init-param 'org.restlet.component'.
It is not currently possible to specify a custom component in mode 2, but retain the ability to further configure it via restlet.xml if it exists. The restlet.xml file is only ever used if in mode 1.
My use case is that I need some custom code in my Component, but I still want to attach my applications and other Restlets via the contents of restlet.xml. I propose that ServerServlet.createComponent() be modified to allow this.