public BPELImplementation read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, XMLStreamException {
assert IMPLEMENTATION_BPEL_QNAME.equals(reader.getName());
// Read an <implementation.bpel> element
BPELImplementation implementation = null;
// Read the process attribute.
QName process = getAttributeValueNS(reader, PROCESS, context.getMonitor());
if (process == null) {
return implementation;
}
// Create and initialize the BPEL implementation model
implementation = bpelFactory.createBPELImplementation();
implementation.setProcess(process);
implementation.setUnresolved(true);
// Skip to end element
while (reader.hasNext()) {
if (reader.next() == END_ELEMENT && IMPLEMENTATION_BPEL_QNAME.equals(reader.getName())) {
break;