class JspServletEx extends JspServlet {

    public static ServletInfo createServlet(String name, String path) {<FILL_FUNCTION_BODY>}


    @Override
    public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
        if(Context.current() == null){
            return;
        }

        super.service(req, res);
    }
}

        ServletInfo servlet = new ServletInfo(name, JspServletEx.class);
        servlet.addMapping(path);
        servlet.setRequireWelcomeFileMapping(true);
        return servlet;
    
<methods>public void <init>() ,public void destroy() ,public int getJspCount() ,public int getJspQueueLength() ,public int getJspReloadCount() ,public int getJspUnloadCount() ,public void init(javax.servlet.ServletConfig) throws javax.servlet.ServletException,public void periodicEvent() ,public void service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) throws javax.servlet.ServletException, java.io.IOException,public void setJspReloadCount(int) <variables>private javax.servlet.ServletConfig config,private transient javax.servlet.ServletContext context,private java.lang.String jspFile,private final transient org.apache.juli.logging.Log log,private transient org.apache.jasper.Options options,private transient org.apache.jasper.compiler.JspRuntimeContext rctxt,private static final long serialVersionUID