} else if (methodOperation instanceof SetServiceFields) {
String svcName = ((SetServiceFields) methodOperation).getServiceName();
if (UtilValidate.isNotEmpty(svcName)) allServiceNames.add(svcName);
} else if (methodOperation instanceof CallSimpleMethod) {
CallSimpleMethod csm = (CallSimpleMethod) methodOperation;
try {
SimpleMethod calledMethod = csm.getSimpleMethodToCall(methodOperations.getClass().getClassLoader());
if (calledMethod == null) {
Debug.logWarning("Could not find simple-method [" + csm.getMethodName() + "] in [" + csm.getXmlResource() + "] from the SimpleMethod [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]", module);
} else {
if (!simpleMethodsVisited.contains(calledMethod.getLocationAndName())) {
simpleMethodsVisited.add(calledMethod.getLocationAndName());
findServiceNamesCalled(calledMethod.methodOperations, allServiceNames, simpleMethodsVisited);
}
}
} catch (MiniLangException e) {
Debug.logWarning("Error getting simple-method info in the [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]: " + e.toString(), module);
}
} else if (methodOperation instanceof Iterate) {
findServiceNamesCalled(((Iterate) methodOperation).getSubOps(), allServiceNames, simpleMethodsVisited);
} else if (methodOperation instanceof IterateMap) {
findServiceNamesCalled(((IterateMap) methodOperation).getSubOps(), allServiceNames, simpleMethodsVisited);