private InputStream dispatcherBasedStreamLocator(final String uri) throws IOException { final HttpServletRequest request = context.getRequest(); final HttpServletResponse response = context.getResponse(); // The order of stream retrieval is important. We are trying to get the dispatcherStreamLocator // in order to handle // jsp resources (if such exist). Switching the order would cause jsp to not be interpreted by // the container. return getDispatcherStreamLocator().getInputStream(request, response, uri); }