final RequestStats stats = config.getServletMan().getServletStats(servletClass);
final long startTime = System.nanoTime(); // for stat keeping
try
{
stats.startProcessing(); // synchronization is not required, so long as endProcessing is always called
final SimpleServlet servletInstance = servletClass.newInstance(); // instantiate a new servlet instance!
if(request.getMethod() == HTTPMethod.GET)
servletInstance.doGet(servletRequest, servletResponse);
else
if(request.getMethod() == HTTPMethod.POST)
servletInstance.doPost(servletRequest, servletResponse);
servletInstance.service(request.getMethod(), servletRequest, servletResponse);
return servletResponse.generateOutput(request); // the generated output, yea!
}
finally
{
session.touch();