// } catch (IOException e) {
// e.printStackTrace();
// }
try {
username=ServerSettings.getSystemUser();
registry = AiravataRegistryFactory.getRegistry(new Gateway(ServerSettings.getSystemUserGateway()),
new AiravataUser(username));
} catch (AiravataConfigurationException e) {
log.error("Error initializing AiravataRegistry2");
} catch (RegistryAccessorNotFoundException e) {
log.error("Error initializing AiravataRegistry2");