if (server.websrv == null) {
    private void register (String appName) {	try {	    IServer.getLogger().log ("Binding application "+appName);	    Application app = (Application) applications.get (appName);	        Naming.rebind ("//:"+port+"/"+appName, app);	    if (server.websrv == null) {	    } else {	        AcmeServletClient servlet = new AcmeServletClient (app);	        server.websrv.addServlet ("/"+appName+"/", servlet);	        server.websrv.addServlet ("/"+appName+"/*", servlet);	    }	} catch (Exception x) {	    IServer.getLogger().log ("Couldn't register app: "+x);	}    }