context.put("deniedSessionsAuthentication", new Integer(stats.getDeniedSessionsAuthentication()));
context.put("deniedSessionsAuthN", new Integer(stats.getDeniedSessionsAuthN()));
    public Template handleRequest( HttpServletRequest request,	HttpServletResponse response, Context context ) throws ServletException {                        log.finer("handleRequest(HttpServletRequest, HttpServletResponse, Context)");        /* A GET should only return the login page. POST is used for         * login attempts.*/         try {                        /* Uptime */            HashMap upTime = stats.upTime();            for (Iterator it = upTime.keySet().iterator(); it.hasNext(); ) {                String label = (String) it.next();                context.put(label, upTime.get(label));            }                        /* Authorization data */            context.put("numOfWebServices", ""+AuthorizationData.getInstance().numOfWebServices());            /* Configuration */            context.put("properties", Configuration.getProperties());            /* Web Services */            HashMap wsStats = stats.getStats();            context.put("wsStats", wsStats);            Object[] sortedWsNames =  wsStats.keySet().toArray();            Arrays.sort(sortedWsNames);            context.put("sortedWsNames", sortedWsNames);            context.put("deniedSessionsAuthentication", new Integer(stats.getDeniedSessionsAuthentication()));            return getTemplate("stats.vtl");        }        catch( ParseErrorException e ) {            log.severe("Parse error. " + e);            throw new ServletException(e);        }        catch( ResourceNotFoundException e ) {            log.severe("Template file not found. " + e);            throw new ServletException(e);        }        catch (ConfigurationException e) {            log.severe("Configuration exception. " +e);            throw new ServletException(e);        }        catch( Exception e ) {            StringWriter stackTrace = new StringWriter();            e.printStackTrace(new PrintWriter(stackTrace));            log.severe("Unspecified error during template parsing: \n" + stackTrace.toString());            throw new ServletException(e);        }    }