InputStream xmlStream = null;
IronJacamar result = null;
try {
xmlStream = serviceXmlFile.openStream();
IronJacamarParser ironJacamarParser = new IronJacamarParser();
ironJacamarParser.setSystemPropertiesResolved(resolveProperties);
result = ironJacamarParser.parse(xmlStream);
if (result != null) {
IronJacamarXmlDescriptor xmlDescriptor = new IronJacamarXmlDescriptor(result);
deploymentUnit.putAttachment(IronJacamarXmlDescriptor.ATTACHMENT_KEY, xmlDescriptor);
} else
throw MESSAGES.failedToParseServiceXml(serviceXmlFile);