protected InputStream getConfigResourceAsStream ( String path ) { InputStream stream = getServletContext ( ) . getResourceAsStream ( path ) ; if ( stream != null ) return stream ; if ( path . startsWith ( "/" ) ) path = path . substring ( 1 ) ; return _rch . getResourceAsStream ( path ) ; }
Get a resource stream for a module configuration file . By default this looks in the ServletContext and in the context classloader .