if (events == null) {
return null;
}
StringBuilder unresolvedList = new StringBuilder();
Map<String, StringBuilder> dependencyMap = new HashMap<String, StringBuilder>();
URIHandlerService uriService = Services.get().get(URIHandlerService.class);
StringBuilder pullMissingDep = null;
StringBuilder pushMissingDep = null;
for (Element event : events) {
StringBuilder instances = new StringBuilder();
ELEvaluator eval = CoordELEvaluator.createInstancesELEvaluator(event, appInst, conf);
// Handle list of instance tag
resolveInstances(event, instances, appInst, conf, eval);
// Handle start-instance and end-instance
resolveInstanceRange(event, instances, appInst, conf, eval);
// Separate out the unresolved instances
String resolvedList = separateResolvedAndUnresolved(event, instances);
if (!resolvedList.isEmpty()) {
Element uri = event.getChild("dataset", event.getNamespace()).getChild("uri-template",
event.getNamespace());
String uriTemplate = uri.getText();
URI baseURI = uriService.getAuthorityWithScheme(uriTemplate);
URIHandler handler = uriService.getURIHandler(baseURI);
if (handler.getDependencyType(baseURI).equals(DependencyType.PULL)) {
pullMissingDep = (pullMissingDep == null) ? new StringBuilder(resolvedList) : pullMissingDep.append(
CoordELFunctions.INSTANCE_SEPARATOR).append(resolvedList);
}
else {