in modules/core/src/main/java/org/apache/savan/configuration/ConfigurationManager.java [124:146]
public void configure(InputStream in) throws SavanException {
if (in == null) {
String message = "Invalid InputStream.";
throw new SavanException(message);
}
try {
XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(in);
OMFactory factory = OMAbstractFactory.getOMFactory();
StAXOMBuilder builder = OMXMLBuilderFactory.createStAXOMBuilder(factory, parser);
OMElement document = builder.getDocumentElement();
if (document == null) {
throw new SavanException("Configuration XML does not have a document element");
}
processSavanConfig(document);
} catch (Exception e) {
throw new SavanException(e);
}
}