xmlrpcHandlers.put (app.getXmlRpcHandlerName(), app);
    void register (String appName) {	try {	    Server.getLogger().log ("Binding application "+appName);	    Application app = (Application) applications.get (appName);	    // bind to RMI server	    if (port > 0) {	        Naming.rebind ("//:"+port+"/"+appName, new RemoteApplication (app));	    }	    // bind to Jetty HTTP server	    if (server.http != null) {	        String mountpoint = getMountpoint (appName);	        // if using embedded webserver (not AJP) set application URL prefix	        if (!app.hasExplicitBaseURI ())	            app.setBaseURI (mountpoint);	        String pattern = getPathPattern (mountpoint);	        ServletHttpContext context = new ServletHttpContext ();	        context.setContextPath(pattern);	        context.addHandler(new ContentEncodingHandler());	        server.http.addContext (context);	        ServletHolder holder = context.addServlet (appName, "/*", "helma.servlet.EmbeddedServletClient");	        holder.setInitParameter ("application", appName);	        holder.setInitParameter ("mountpoint", mountpoint);	        String cookieDomain = props.getProperty (appName+".cookieDomain");	        if (cookieDomain != null)	            holder.setInitParameter ("cookieDomain", cookieDomain);	        String uploadLimit = props.getProperty (appName+".uploadLimit");	        if (uploadLimit != null)	            holder.setInitParameter ("uploadLimit", uploadLimit);	        String debug = props.getProperty (appName+".debug");	        if (debug != null)	            holder.setInitParameter ("debug", debug);	        // holder.start ();	        context.start ();	        mountpoints.setProperty (appName, pattern);	    }	    app.start ();	} catch (Exception x) {	    Server.getLogger().log ("Couldn't register and start app: "+x);	    x.printStackTrace ();	}    }