ext = "";
} else if(ext.length() > 0) {
ext = "." + ext;
}
final String path = request.getContextPath() + job.getPath() + ext;
response.sendRedirect(path);
} catch (org.apache.sling.api.resource.LoginException e) {
throw new ServletException("LoginException in doFilter", e);
}
} else {
chain.doFilter(sreq, sresp);