HttpServer server = getServer().getServer();  server.addContext(application);
    public void deploy(Prim declaration)            throws SmartFrogException, RemoteException {        webApp =                FileSystem.lookupAbsolutePath(declaration,                        ATTR_FILE,                        null,                        null,                        true,                        null);        //sanity check        File webappFile = new File(webApp);        if (!webappFile.exists()) {            throw new SmartFrogDeploymentException(ERROR_FILE_NOT_FOUND +                    webappFile);        }        //request ID        requestId = declaration.sfResolve(requestIdRef, requestId, false);        contextPath = declaration.sfResolve(contextPathRef,                (String) null,                true);        String absolutePath = contextPath;        declaration.sfReplaceAttribute(ATTR_ABSOLUTE_PATH, absolutePath);        application.setContextPath(contextPath);        application.setWAR(webApp);        ServletHandler servlethandler = application.getServletHandler();        AbstractSessionManager sessionmanager = (AbstractSessionManager)                servlethandler.getSessionManager();        sessionmanager.setUseRequestedId(requestId);        HttpServer server = getServer().getServer();        //if the server is null, it means that we havent started yet.        server.addContext(application);        setContext(application);    }