URL bpmPlatformXmlSource = getBpmPlatformXmlStream(operationContext);
ensureNotNull("Unable to find bpm-platform.xml. This file is necessary for deploying the camunda BPM platform", "bpmPlatformXmlSource", bpmPlatformXmlSource);
// parse the bpm platform xml
BpmPlatformXml bpmPlatformXml = new BpmPlatformXmlParser().createParse()
.sourceUrl(bpmPlatformXmlSource)
.execute()
.getBpmPlatformXml();
// attach to operation context