public Configuration createFromResource ( String resourceName ) { Exceptions . nullArgument ( "resourceName" , resourceName ) ; Configuration configuration ; try { InputStream stream = null ; try { stream = Utils . openResourceStream ( resourceName ) ; if ( stream != null ) { configuration = create ( stream ) ; } else { throw new TextProcessorFactoryException ( "Can't find or open resource \"" + resourceName + "\"." ) ; } } finally { if ( stream != null ) { stream . close ( ) ; } } } catch ( IOException e ) { throw new TextProcessorFactoryException ( e ) ; } return configuration ; }
Create the bb - processor using xml - configuration resource