if (isPost)
if (request.getMethod().equals("POST"))
    private void processRequest(HttpServletRequest request,        HttpServletResponse response,        boolean isPost)        throws ServletException, IOException    {        Context context = null;        // Get the URL from the request immediately, since forwarding        // loses that information        UIUtil.storeOriginalURL(request);        try        {            // Obtain a context - either create one, or get the one created by            // an authentication filter            context = UIUtil.obtainContext(request);                    // Are we resuming a previous request that was interrupted for            // authentication?            request = Authenticate.getRealRequest(request);            // Invoke the servlet code            if (isPost)            {                doDSPost(context, request, response);            }            else            {                doDSGet(context, request, response);            }        }        catch (SQLException se)        {            // For database errors, we log the exception and show a suitably            // apologetic error            log.warn(LogManager.getHeader(context,                "database_error",                se.toString()), se);            // Also email an alert            UIUtil.sendAlert(request, se);            JSPManager.showInternalError(request, response);        }        catch (AuthorizeException ae)        {            /*              *If no user is logged in, we will start authentication, since if             * they authenticate, they might be allowed to do what they tried             * to do.  If someone IS logged in, and we got this exception, we             * know they tried to do something they aren't allowed to, so we             * display an error in that case.             */            if (context.getCurrentUser() == null)            {                Authenticate.startAuthentication(context, request, response);            }            else            {                // FIXME: Log the right info?                // Log the error                log.info(LogManager.getHeader(context,                    "authorize_error",                    ae.toString()));                JSPManager.showAuthorizeError(request, response, ae);            }        }                // Abort the context if it's still valid        if (context != null && context.isValid())        {            context.abort();        }    }