List<Interface> interfaces = (List<Interface>)
((ProcessBuildData) parser.getData()).getMetaData("Interfaces");
if (interfaces == null) {
throw new IllegalArgumentException("No interfaces found");
}
Operation operation = null;
for (Interface i: interfaces) {
operation = i.getOperation(operationRef);
if (operation != null) {
break;
}
}
if (operation == null) {
throw new IllegalArgumentException("Could not find operation " + operationRef);
}
workItemNode.getWork().setParameter("Interface", operation.getInterface().getName());
workItemNode.getWork().setParameter("Operation", operation.getName());
workItemNode.getWork().setParameter("ParameterType", operation.getMessage().getType());
}