String contextPath = request.getContextPath();
checkRole(context);
statRequestCtx = new StatisticsRequestContext();
initStatisticsRequestContext(request,response,context, statRequestCtx);
GeoportalStatisticsProviderFactory geoportalStatProviderFactory = new GeoportalStatisticsProviderFactory();
StatisticsWriterFactory statisticsWriterFactory = new StatisticsWriterFactory();
statisticsWriterFactory.makeStatisticsWriter(statRequestCtx);
GeoportalUsageInformation usageInfo = geoportalStatProviderFactory.buildUsageReport(statRequestCtx);
}