ctx.setServletContext(req.getSession().getServletContext());
repo.setMimeTypeResolver(ctx);
}
IMethod method = methodFactory.createMethod(req, rsp);
method.init(req, rsp, null, repo, root);
method.invoke();
}
catch (Exception e)
{
e.printStackTrace();
logger.error("Error trying to serve request");