result = SynapseConfigUtils.readNonXML(url);
} finally {
try {
result.detach();
OMDocumentImpl parent = new OMDocumentImpl(OMAbstractFactory.getOMFactory());
parent.addChild(result);
inputStream.close();
} catch (IOException e) {
log.error("Error in closing the input stream.", e);
}