if (RackWebApplicationInstaller.FIVE_HUNDRED_SERVLET_NAME.equals(servletName) ||
RackWebApplicationInstaller.STATIC_RESROUCE_SERVLET_NAME.equals(servletName)) {
// Only hand off requests to Rack if they're handled by one of the
// TorqueBox servlets
HttpServletResponseCapture responseCapture = new HttpServletResponseCapture( response );
try {
chain.doFilter( request, responseCapture );
if (responseCapture.isError()) {
response.reset();
} else if (!request.getMethod().equals( "OPTIONS" )) {
// Pass HTTP OPTIONS requests through to the Rack application
return;
}