@ FFDCIgnore ( XMLStreamException . class ) public boolean parseServerConfiguration ( InputStream in , String docLocation , BaseConfiguration config , MergeBehavior mergeBehavior ) throws ConfigParserException , ConfigValidationException { XMLStreamReader parser = null ; try { parser = getXMLInputFactory ( ) . createXMLStreamReader ( docLocation , in ) ; return parseServerConfiguration ( new DepthAwareXMLStreamReader ( parser ) , docLocation , config , mergeBehavior ) ; } catch ( XMLStreamException e ) { throw new ConfigParserException ( e ) ; } finally { if ( parser != null ) { try { parser . close ( ) ; } catch ( XMLStreamException e ) { throw new ConfigParserException ( e ) ; } } } }
private if not for tests