return gatekeeper;
}
}
}
HostDescriptionType hostDesc = appExecContext.getExecutionModel().getHostDesc();
GlobusGatekeeperType[] gatekeepers = hostDesc.getHostConfiguration().getGlobusGatekeeperArray();
for (GlobusGatekeeperType gateKeeper : gatekeepers) {
if (gateKeeper.getWsGram() == wsgram && (isSpruceEnabled == gateKeeper.getJobmanagertype().equals(GlobusJobManagerType.SPRUCE))) {
log.info((wsgram ? "WSGram" : "Gram ") + (!isSpruceEnabled ? "Non" : "") + " Spruce Gate keeper" + gateKeeper.xmlText() + " selected");
return gateKeeper;
}