try {
// Stupid Stupid Stupid
if (r.getPathInfo() == null) {
String uri = r.getRequestURI();
String pathInfo = uri.substring(uri.indexOf(r.getServletPath()) + r.getServletPath().length());
r.pathInfo(pathInfo);
}
} catch (Exception e) {
// Whatever exception occurs skip it
logger.trace("", e);
}