Prim ancestor = findServletContextAncestor(); if (ancestor != null) { context = (ServletHttpContext) ancestor.
Prim contextImpl = findServletContext(); if (contextImpl != null) { jettyContext = (ServletHttpContext) contextImpl.
    public ServletHttpContext getServletContext(boolean mandatory)            throws SmartFrogException, RemoteException {        ServletHttpContext context = null;        Prim ancestor = findServletContextAncestor();        if (ancestor != null) {            context = (ServletHttpContext) ancestor.                    sfResolve(JettyServletContextIntf.ATTR_CONTEXT);        }        if (mandatory && context == null) {            throw new SmartFrogException(                    "Could not locate "                    +                    JettyServletContextIntf.ATTR_CONTEXT +                    " in the hierarchy");        }        return context;    }