ComponentServiceModel componentServiceModel = new V1ComponentServiceModel(switchyardNamespace.uri());
InterfaceModel interfaceModel = new V1InterfaceModel(InterfaceModel.JAVA);
interfaceModel.setInterface(bpmInterface.getName());
componentServiceModel.setInterface(interfaceModel);
componentServiceModel.setName(bpmName);
componentModel.addService(componentServiceModel);
return componentModel;
}
private UserGroupCallbackModel toUserGroupCallbackModel(UserGroupCallback[] userGroupCallbackAnnotations, BPMNamespace bpmNamespace) {
if (userGroupCallbackAnnotations == null || userGroupCallbackAnnotations.length == 0) {