File staticContent = new File (server.getHopHome(), "static");
File staticContent = new File (server.getHopHome(), "static").getCanonicalFile();
    public void startAll () {	try {	    for (Enumeration e = props.keys(); e.hasMoreElements (); ) {	        String appName = (String) e.nextElement ();	        if (appName.indexOf (".") == -1)	            start (appName);	    }	    for (Enumeration e = props.keys(); e.hasMoreElements (); ) {	        String appName = (String) e.nextElement ();	        if (appName.indexOf (".") == -1)	            register (appName);	    }	    if (server.http != null) {	        // add handler for static files.	        File staticContent = new File (server.getHopHome(), "static");	        Server.getLogger().log("Serving static content from "+staticContent.getAbsolutePath());	        HandlerContext context = server.http.addContext ("/static/*");	        context.setResourceBase (staticContent.getAbsolutePath());	        context.setServingResources (true);	        context.start ();	    }	    lastModified = System.currentTimeMillis ();	} catch (Exception mx) {	    Server.getLogger().log ("Error starting applications: "+mx);	    mx.printStackTrace ();	}    }