// Create the interface
String id = interfaceElement.attribute("id");
String name = interfaceElement.attribute("name");
String implementationRef = this.resolveName(interfaceElement.attribute("implementationRef"));
BpmnInterface bpmnInterface = new BpmnInterface(this.targetNamespace + ":" + id, name);
bpmnInterface.setImplementation(this.interfaceImplementations.get(implementationRef));
// Handle all its operations
for (Element operationElement : interfaceElement.elements("operation")) {
Operation operation = parseOperation(operationElement, bpmnInterface);
bpmnInterface.addOperation(operation);
}
bpmnInterfaces.put(bpmnInterface.getId(), bpmnInterface);
}
}