public MithraRuntimeType parseConfiguration ( InputStream mithraFileIs ) { if ( mithraFileIs == null ) { throw new MithraBusinessException ( "Could not parse Mithra configuration, because the input stream is null." ) ; } try { MithraRuntimeUnmarshaller unmarshaller = new MithraRuntimeUnmarshaller ( ) ; unmarshaller . setValidateAttributes ( false ) ; return unmarshaller . parse ( mithraFileIs , "" ) ; } catch ( IOException e ) { throw new MithraBusinessException ( "unable to parse " , e ) ; } finally { try { mithraFileIs . close ( ) ; } catch ( IOException e ) { getLogger ( ) . error ( "Could not close Mithra XML input stream" , e ) ; } } }
Parses the configuration file . Should only be called by MithraTestResource . Use readConfiguration to parse and initialize the configuration .