@ Override public InputStream getResourceAsStream ( String name ) { byte [ ] b = null ; try { Asset resource = AssetCache . getAsset ( mdwPackage . getName ( ) + "/" + name ) ; if ( resource != null ) b = resource . getRawContent ( ) ; if ( b == null ) b = findInJarAssets ( name ) ; if ( b == null ) b = findInFileSystem ( name ) ; } catch ( Exception ex ) { logger . severeException ( ex . getMessage ( ) , ex ) ; } if ( b == null ) return super . getResourceAsStream ( name ) ; else return new ByteArrayInputStream ( b ) ; }
This is used by XMLBeans for loading the type system .