try {
/* Initializing the OrchestratorConfiguration object */
orchestratorConfiguration = OrchestratorUtils.loadOrchestratorConfiguration();
setGatewayProperties();
/* initializing the Orchestratorcontext object */
airavataRegistry = AiravataRegistryFactory.getRegistry(new Gateway(getGatewayName()), new AiravataUser(getAiravataUserName()));
// todo move this code to gfac service mode Jobsubmitter,
// todo this is ugly, SHOULD fix these isEmbedded mode code from Orchestrator
if (!orchestratorConfiguration.isEmbeddedMode()) {
Map<String, Integer> gfacNodeList = airavataRegistry.getGFACNodeList();
if (gfacNodeList.size() == 0) {