protected InputStream getModelResourceAsStream ( ) throws IOException { final ServletContext servletContext = context . getServletContext ( ) ; // Don't allow NPE, throw a more detailed exception if ( servletContext == null ) { throw new WroRuntimeException ( "No servletContext is available. Probably you are running this code outside of the request cycle!" ) ; } final String resourceLocation = "/WEB-INF/" + getDefaultModelFilename ( ) ; final InputStream stream = servletContext . getResourceAsStream ( resourceLocation ) ; if ( stream == null ) { throw new IOException ( "Invalid resource requested: " + resourceLocation ) ; } return stream ; }
Override this method in order to provide different xml definition file name .