You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ya...@apache.org on 2025/06/12 20:52:02 UTC

(airavata) 01/02: run spotless:apply, add style-check github action

This is an automated email from the ASF dual-hosted git repository.

yasith pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata.git

commit 8665a46540502abaf2beee8396bd98cc6e7f2a00
Author: yasithdev <ya...@icloud.com>
AuthorDate: Tue Jun 10 14:10:51 2025 -0500

    run spotless:apply, add style-check github action
---
 .github/workflows/style-check.yml                  |   23 +
 airavata-api/airavata-api-client/pom.xml           |   36 +-
 .../airavata/api/client/AiravataClientFactory.java |   81 +-
 airavata-api/airavata-api-server/pom.xml           |   32 +-
 .../airavata/api/server/AiravataAPIServer.java     |  292 +--
 .../api/server/handler/AiravataServerHandler.java  | 2680 +++++++++++++-------
 .../apache/airavata/api/server/util/Constants.java |   38 +-
 .../airavata-client-sdks/airavata-cpp-sdk/pom.xml  |   32 +-
 .../airavata-client-sdks/airavata-php-sdk/pom.xml  |   32 +-
 .../java-client-samples/pom.xml                    |   32 +-
 .../airavata/client/samples/CancelExperiments.java |   52 +-
 .../airavata/client/samples/CreateLaunchBES.java   |  164 +-
 .../client/samples/CreateLaunchExperiment.java     |  853 ++++---
 .../client/samples/CreateLaunchExperimentUS3.java  |  498 ++--
 .../client/samples/ReplicaCatalogSample.java       |   39 +-
 .../client/samples/SampleEchoExperiment.java       |  140 +-
 .../airavata/client/secure/client/Properties.java  |   47 +-
 .../client/secure/client/SecureClient.java         |   46 +-
 .../client/tools/RegisterOGCEUS3Application.java   |  514 ++--
 .../client/tools/RegisterSampleApplications.java   | 1787 ++++++++-----
 .../tools/RegisterSampleApplicationsUtils.java     |  131 +-
 .../client/tools/RegisterUS3Application.java       |  530 ++--
 airavata-api/airavata-client-sdks/pom.xml          |   36 +-
 airavata-api/airavata-data-models/pom.xml          |   32 +-
 airavata-api/airavata-model-utils/pom.xml          |   36 +-
 .../airavata/model/util/AppDeploymentUtil.java     |   55 +-
 .../airavata/model/util/AppInterfaceUtil.java      |   69 +-
 .../apache/airavata/model/util/ExecutionType.java  |   42 +-
 .../airavata/model/util/ExperimentModelUtil.java   |  107 +-
 .../util/GroupComputeResourcePreferenceUtil.java   |   43 +-
 .../airavata/model/util/ProjectModelUtil.java      |   39 +-
 .../GroupComputeResourcePreferenceUtilTest.java    |  117 +-
 airavata-api/pom.xml                               |   36 +-
 airavata-services/pom.xml                          |   32 +-
 .../iam-admin-services-core/pom.xml                |   32 +-
 .../core/impl/TenantManagementKeycloakImpl.java    |  397 +--
 .../core/interfaces/TenantManagementInterface.java |   82 +-
 .../admin/services/core/tests/SetupNewGateway.java |  210 +-
 airavata-services/profile-service/pom.xml          |   36 +-
 .../java-client-samples/pom.xml                    |   36 +-
 .../profile/client/samples/GroupManagerSample.java |   37 +-
 .../client/samples/TenantProfileSample.java        |   43 +-
 .../profile/client/samples/UserProfileSample.java  |   53 +-
 .../client/util/ProfileServiceClientUtil.java      |   38 +-
 .../profile-service-client-sdks/pom.xml            |   36 +-
 .../profile-service-commons/pom.xml                |   32 +-
 .../commons/repositories/AbstractRepository.java   |   64 +-
 .../commons/tenant/entities/GatewayEntity.java     |   87 +-
 .../user/entities/CustomizedDashboardEntity.java   |   92 +-
 .../user/entities/NSFDemographicsEntity.java       |   55 +-
 .../commons/user/entities/UserProfileEntity.java   |  115 +-
 .../service/profile/commons/utils/Committer.java   |   40 +-
 .../profile/commons/utils/JPAConstants.java        |   54 +-
 .../service/profile/commons/utils/JPAUtils.java    |   46 +-
 .../commons/utils/ObjectMapperSingleton.java       |   49 +-
 .../commons/utils/ProfileServiceJDBCConfig.java    |   40 +-
 .../profile/commons/utils/QueryConstants.java      |   68 +-
 .../service/profile/commons/utils/Utils.java       |   99 +-
 .../profile-service/profile-service-server/pom.xml |   32 +-
 .../handlers/GroupManagerServiceHandler.java       |  185 +-
 .../profile/handlers/IamAdminServicesHandler.java  |  124 +-
 .../handlers/TenantProfileServiceHandler.java      |  100 +-
 .../handlers/UserProfileServiceHandler.java        |  110 +-
 .../profile/server/ProfileServiceServer.java       |   89 +-
 .../profile-service/profile-service-stubs/pom.xml  |   32 +-
 .../client/ProfileServiceClientFactory.java        |   62 +-
 .../profile-service/profile-tenant-core/pom.xml    |   36 +-
 .../core/repositories/TenantProfileRepository.java |   64 +-
 .../profile-service/profile-user-core/pom.xml      |   32 +-
 .../exceptions/UserProfileRegistryException.java   |   40 +-
 .../core/repositories/UserProfileRepository.java   |   96 +-
 .../core/utils/UserProfileCatalogDBInitConfig.java |   39 +-
 .../core/utils/UserProfileCatalogJDBCConfig.java   |   39 +-
 .../core/repositories/WorkspaceRepositoryTest.java |  342 +--
 airavata-services/services-security/pom.xml        |   32 +-
 .../service/security/AiravataSecurityManager.java  |   43 +-
 .../service/security/GatewayGroupsInitializer.java |   88 +-
 .../airavata/service/security/IdentityContext.java |   43 +-
 .../service/security/KeyCloakSecurityManager.java  |  320 +--
 .../service/security/SecurityManagerFactory.java   |   39 +-
 .../apache/airavata/service/security/UserInfo.java |   39 +-
 .../service/security/authzcache/AuthzCache.java    |   43 +-
 .../security/authzcache/AuthzCacheEntry.java       |   42 +-
 .../security/authzcache/AuthzCacheIndex.java       |   42 +-
 .../security/authzcache/AuthzCacheManager.java     |   40 +-
 .../authzcache/AuthzCacheManagerFactory.java       |   44 +-
 .../security/authzcache/AuthzCachedStatus.java     |   36 +-
 .../authzcache/DefaultAuthzCacheManager.java       |   48 +-
 .../security/interceptor/SecurityCheck.java        |   40 +-
 .../security/interceptor/SecurityInterceptor.java  |   57 +-
 .../security/interceptor/SecurityModule.java       |   43 +-
 .../security/GatewayGroupsInitializerTest.java     |  123 +-
 .../security/KeyCloakSecurityManagerTest.java      |  340 ++-
 modules/agent-framework/agent-service/pom.xml      |   34 +-
 .../service/AgentServiceApplication.java           |   37 +-
 .../agent/connection/service/UserContext.java      |   43 +-
 .../service/config/AuthzTokenFilter.java           |   46 +-
 .../service/config/ClusterApplicationConfig.java   |   41 +-
 .../service/controllers/AgentController.java       |  102 +-
 .../service/controllers/ExperimentController.java  |   51 +-
 .../service/controllers/PlanController.java        |   42 +-
 .../service/db/entity/AgentDeploymentInfo.java     |   42 +-
 .../service/db/entity/AgentExecution.java          |   41 +-
 .../service/db/entity/AgentExecutionStatus.java    |   38 +-
 .../agent/connection/service/db/entity/Plan.java   |   38 +-
 .../service/db/repo/AgentDeploymentInfoRepo.java   |   40 +-
 .../service/db/repo/AgentExecutionRepo.java        |   40 +-
 .../service/db/repo/AgentExecutionStatusRepo.java  |   40 +-
 .../agent/connection/service/db/repo/PlanRepo.java |   40 +-
 .../service/handlers/AgentConnectionHandler.java   |  303 ++-
 .../service/handlers/AgentManagementHandler.java   |  127 +-
 .../connection/service/handlers/FuseFSHandler.java |  125 +-
 .../connection/service/handlers/PlanHandler.java   |   42 +-
 .../models/AgentAsyncCommandExecutionRequest.java  |   37 +-
 .../models/AgentAsyncCommandExecutionResponse.java |   37 +-
 .../models/AgentAsyncCommandListRequest.java       |   37 +-
 .../models/AgentAsyncCommandListResponse.java      |   37 +-
 .../models/AgentAsyncCommandTerminateRequest.java  |   37 +-
 .../models/AgentAsyncCommandTerminateResponse.java |   37 +-
 .../service/models/AgentCommandExecutionAck.java   |   39 +-
 .../models/AgentCommandExecutionRequest.java       |   37 +-
 .../models/AgentCommandExecutionResponse.java      |   37 +-
 .../service/models/AgentEnvSetupAck.java           |   39 +-
 .../service/models/AgentEnvSetupRequest.java       |   38 +-
 .../service/models/AgentEnvSetupResponse.java      |   37 +-
 .../service/models/AgentInfoResponse.java          |   39 +-
 .../service/models/AgentJupyterExecutionAck.java   |   40 +-
 .../models/AgentJupyterExecutionRequest.java       |   37 +-
 .../models/AgentJupyterExecutionResponse.java      |   37 +-
 .../service/models/AgentKernelRestartAck.java      |   40 +-
 .../service/models/AgentKernelRestartRequest.java  |   37 +-
 .../service/models/AgentKernelRestartResponse.java |   37 +-
 .../service/models/AgentLaunchRequest.java         |   38 +-
 .../service/models/AgentLaunchResponse.java        |   37 +-
 .../service/models/AgentPythonExecutionAck.java    |   40 +-
 .../models/AgentPythonExecutionRequest.java        |   37 +-
 .../models/AgentPythonExecutionResponse.java       |   37 +-
 .../service/models/AgentTerminateResponse.java     |   37 +-
 .../connection/service/models/AgentTunnelAck.java  |   37 +-
 .../service/models/AgentTunnelCreateRequest.java   |   37 +-
 .../service/models/AgentTunnelCreateResponse.java  |   37 +-
 .../models/AgentTunnelTerminateRequest.java        |   37 +-
 .../models/AgentTunnelTerminateResponse.java       |   40 +-
 .../connection/service/models/AsyncCommand.java    |   37 +-
 .../connection/service/models/DirectoryInfo.java   |   37 +-
 .../service/models/ExperimentStorageResponse.java  |   37 +-
 .../agent/connection/service/models/FileInfo.java  |   37 +-
 .../service/services/AiravataFileService.java      |   78 +-
 .../service/services/AiravataService.java          |  111 +-
 modules/agent-framework/pom.xml                    |   34 +-
 modules/airavata-helix/agent-api/pom.xml           |   32 +-
 .../apache/airavata/agents/api/AdaptorParams.java  |   39 +-
 .../java/org/apache/airavata/agents/api/Agent.java |   41 +-
 .../apache/airavata/agents/api/AgentAdaptor.java   |   44 +-
 .../apache/airavata/agents/api/AgentException.java |   38 +-
 .../org/apache/airavata/agents/api/AgentUtils.java |   23 +-
 .../apache/airavata/agents/api/CommandOutput.java  |   48 +-
 .../apache/airavata/agents/api/FileMetadata.java   |   38 +-
 .../airavata/agents/api/JobSubmissionOutput.java   |   38 +-
 .../agents/api/StorageResourceAdaptor.java         |   52 +-
 .../airavata/agents/streaming/TransferResult.java  |   42 +-
 .../agents/streaming/VirtualInputStream.java       |   46 +-
 .../agents/streaming/VirtualOutputStream.java      |   40 +-
 .../agents/streaming/VirtualStreamProducer.java    |   38 +-
 modules/airavata-helix/agent-impl/pom.xml          |   32 +-
 .../airavata-helix/agent-impl/ssh-agent/pom.xml    |   19 +-
 .../airavata/helix/agent/ssh/SshAdaptorParams.java |   41 +-
 .../airavata/helix/agent/ssh/SshAgentAdaptor.java  |  189 +-
 .../helix/agent/ssh/StandardOutReader.java         |   42 +-
 .../agent/storage/StorageResourceAdaptorImpl.java  |   59 +-
 .../airavata-helix/agent-impl/sshj-agent/pom.xml   |   36 +-
 .../airavata/helix/adaptor/PoolingSSHJClient.java  |  133 +-
 .../airavata/helix/adaptor/SSHJAgentAdaptor.java   |  280 +-
 .../airavata/helix/adaptor/SSHJStorageAdaptor.java |   87 +-
 .../adaptor/wrapper/SCPFileTransferWrapper.java    |   48 +-
 .../helix/adaptor/wrapper/SFTPClientWrapper.java   |   44 +-
 .../helix/adaptor/wrapper/SSHClientWrapper.java    |   19 +
 .../helix/adaptor/wrapper/SessionWrapper.java      |   57 +-
 modules/airavata-helix/helix-spectator/pom.xml     |   32 +-
 .../helix/impl/controller/HelixController.java     |   71 +-
 .../impl/controller/WorkflowCleanupAgent.java      |   54 +-
 .../helix/impl/participant/GlobalParticipant.java  |   86 +-
 .../airavata/helix/impl/task/AiravataTask.java     |  181 +-
 .../airavata/helix/impl/task/TaskContext.java      |  335 +--
 .../helix/impl/task/TaskOnFailException.java       |   38 +-
 .../impl/task/cancel/CancelCompletingTask.java     |   34 +-
 .../task/cancel/RemoteJobCancellationTask.java     |  114 +-
 .../impl/task/cancel/WorkflowCancellationTask.java |   61 +-
 .../helix/impl/task/completing/CompletingTask.java |   46 +-
 .../airavata/helix/impl/task/env/EnvSetupTask.java |   66 +-
 .../airavata/helix/impl/task/mock/MockTask.java    |   25 +-
 .../helix/impl/task/parsing/DataParsingTask.java   |  313 ++-
 .../impl/task/parsing/ParsingTriggeringTask.java   |   41 +-
 .../task/parsing/ProcessCompletionMessage.java     |   19 +
 .../ProcessCompletionMessageDeserializer.java      |   30 +-
 .../kafka/ProcessCompletionMessageSerializer.java  |   30 +-
 .../impl/task/parsing/models/ParsingTaskInput.java |   19 +
 .../task/parsing/models/ParsingTaskInputs.java     |   22 +-
 .../task/parsing/models/ParsingTaskOutput.java     |   19 +
 .../task/parsing/models/ParsingTaskOutputs.java    |   22 +-
 .../helix/impl/task/staging/ArchiveTask.java       |  122 +-
 .../helix/impl/task/staging/DataStagingTask.java   |  155 +-
 .../impl/task/staging/InputDataStagingTask.java    |   72 +-
 .../impl/task/staging/JobVerificationTask.java     |   69 +-
 .../impl/task/staging/OutputDataStagingTask.java   |  142 +-
 .../task/submission/DefaultJobSubmissionTask.java  |  134 +-
 .../task/submission/ForkJobSubmissionTask.java     |   74 +-
 .../impl/task/submission/JobSubmissionTask.java    |  177 +-
 .../task/submission/LocalJobSubmissionTask.java    |   55 +-
 .../task/submission/config/GroovyMapBuilder.java   |  160 +-
 .../impl/task/submission/config/GroovyMapData.java |   58 +-
 .../impl/task/submission/config/JobFactory.java    |  134 +-
 .../submission/config/JobManagerConfiguration.java |   44 +-
 .../impl/task/submission/config/OutputParser.java  |   44 +-
 .../task/submission/config/RawCommandInfo.java     |   38 +-
 .../impl/task/submission/config/ScriptTag.java     |   39 +-
 .../config/app/ForkJobConfiguration.java           |   62 +-
 .../config/app/HTCondorJobConfiguration.java       |   73 +-
 .../impl/task/submission/config/app/JobUtil.java   |  105 +-
 .../submission/config/app/LSFJobConfiguration.java |   64 +-
 .../submission/config/app/PBSJobConfiguration.java |  238 +-
 .../config/app/SlurmJobConfiguration.java          |   83 +-
 .../submission/config/app/UGEJobConfiguration.java |   65 +-
 .../parser/AiravataCustomCommandOutputParser.java  |   41 +-
 .../config/app/parser/ForkOutputParser.java        |   48 +-
 .../config/app/parser/HTCondorOutputParser.java    |   62 +-
 .../config/app/parser/LSFOutputParser.java         |   86 +-
 .../config/app/parser/PBSOutputParser.java         |   80 +-
 .../config/app/parser/SlurmOutputParser.java       |   79 +-
 .../config/app/parser/UGEOutputParser.java         |  115 +-
 .../helix/impl/workflow/ParserWorkflowManager.java |  203 +-
 .../helix/impl/workflow/PostWorkflowManager.java   |  249 +-
 .../helix/impl/workflow/PreWorkflowManager.java    |  123 +-
 .../helix/impl/workflow/WorkflowManager.java       |   62 +-
 modules/airavata-helix/pom.xml                     |   32 +-
 modules/airavata-helix/task-api/pom.xml            |   32 +-
 .../apache/airavata/helix/task/api/TaskHelper.java |   38 +-
 .../airavata/helix/task/api/TaskParamType.java     |   20 +
 .../helix/task/api/annotation/TaskDef.java         |   38 +-
 .../helix/task/api/annotation/TaskOutPort.java     |   38 +-
 .../helix/task/api/annotation/TaskParam.java       |   40 +-
 .../helix/task/api/support/AdaptorSupport.java     |   48 +-
 modules/airavata-helix/task-core/pom.xml           |   32 +-
 .../apache/airavata/helix/core/AbstractTask.java   |   74 +-
 .../org/apache/airavata/helix/core/OutPort.java    |   39 +-
 .../helix/core/participant/HelixParticipant.java   |   87 +-
 .../helix/core/support/TaskHelperImpl.java         |   38 +-
 .../core/support/adaptor/AdaptorSupportImpl.java   |  101 +-
 .../helix/core/support/adaptor/AgentStore.java     |   98 +-
 .../airavata/helix/core/util/MonitoringUtil.java   |   31 +-
 .../airavata/helix/core/util/PropertyResolver.java |   38 +-
 .../apache/airavata/helix/core/util/TaskUtil.java  |   74 +-
 modules/airavata-helix/workflow-impl/pom.xml       |   32 +-
 .../airavata/helix/workflow/QueueOperator.java     |   72 +-
 .../airavata/helix/workflow/WorkflowOperator.java  |   93 +-
 .../metadata-analyzer/pom.xml                      |   19 +-
 .../metadata/analyzer/DataInterpreterService.java  |   40 +-
 .../metadata/analyzer/impl/DataAnalyzerImpl.java   |   43 +-
 .../metadata/analyzer/utils/Constants.java         |   21 +-
 .../metascheduler-core/pom.xml                     |   19 +-
 .../metascheduler/core/api/ProcessScheduler.java   |   30 +-
 .../engine/ComputeResourceSelectionPolicy.java     |   27 +-
 .../metascheduler/core/engine/DataAnalyzer.java    |   24 +-
 .../metascheduler/core/engine/ProcessScanner.java  |   24 +-
 .../metascheduler/core/engine/ReScheduler.java     |   19 +
 .../airavata/metascheduler/core/utils/Utils.java   |   57 +-
 modules/airavata-metascheduler/pom.xml             |   19 +-
 .../process-scheduler/pom.xml                      |   19 +-
 .../scheduling/api/ProcessSchedulerImpl.java       |   74 +-
 .../ComputeResourceSelectionPolicyImpl.java        |   32 +-
 .../DefaultComputeResourceSelectionPolicy.java     |   39 +-
 .../selection/MultipleComputeResourcePolicy.java   |   83 +-
 .../rescheduler/ExponentialBackOffReScheduler.java |  110 +-
 .../rescheduler/ProcessReschedulingService.java    |   40 +-
 .../engine/rescheduler/ProcessScannerImpl.java     |   30 +-
 .../process/scheduling/utils/Constants.java        |   21 +-
 modules/cluster-monitoring/pom.xml                 |   32 +-
 .../monitoring/ClusterStatusMonitorJob.java        |  145 +-
 .../ClusterStatusMonitorJobScheduler.java          |   53 +-
 modules/commons/pom.xml                            |   32 +-
 .../airavata/common/context/RequestContext.java    |   37 +-
 .../airavata/common/context/WorkflowContext.java   |   42 +-
 .../exception/AiravataConfigurationException.java  |   57 +-
 .../common/exception/AiravataException.java        |   58 +-
 .../common/exception/AiravataStartupException.java |   39 +-
 .../exception/ApplicationSettingsException.java    |   52 +-
 .../apache/airavata/common/logging/Exception.java  |   37 +-
 .../airavata/common/logging/MDCConstants.java      |   37 +-
 .../apache/airavata/common/logging/MDCUtil.java    |   42 +-
 .../airavata/common/utils/AiravataJobState.java    |   37 +-
 .../airavata/common/utils/AiravataUtils.java       |   42 +-
 .../airavata/common/utils/ApplicationSettings.java |  409 +--
 .../apache/airavata/common/utils/Constants.java    |   43 +-
 .../common/utils/DBEventManagerConstants.java      |   54 +-
 .../airavata/common/utils/DBEventService.java      |   40 +-
 .../apache/airavata/common/utils/DBInitConfig.java |   43 +-
 .../airavata/common/utils/DBInitializer.java       |   49 +-
 .../org/apache/airavata/common/utils/DBUtil.java   |   87 +-
 .../airavata/common/utils/DatabaseCreator.java     |   74 +-
 .../airavata/common/utils/DatabaseTestCases.java   |   64 +-
 .../utils/DefaultKeyStorePasswordCallback.java     |   41 +-
 .../airavata/common/utils/DerbyTestUtil.java       |  113 +-
 .../apache/airavata/common/utils/DerbyUtil.java    |   60 +-
 .../airavata/common/utils/ExecutionMode.java       |   42 +-
 .../org/apache/airavata/common/utils/IOUtil.java   |   53 +-
 .../org/apache/airavata/common/utils/IServer.java  |   92 +-
 .../apache/airavata/common/utils/JDBCConfig.java   |   43 +-
 .../org/apache/airavata/common/utils/JPAUtils.java |   44 +-
 .../org/apache/airavata/common/utils/JSONUtil.java |   85 +-
 .../common/utils/KeyStorePasswordCallback.java     |   77 +-
 .../airavata/common/utils/LocalEventPublisher.java |   43 +-
 .../airavata/common/utils/NameValidator.java       |   39 +-
 .../org/apache/airavata/common/utils/Pair.java     |   49 +-
 .../apache/airavata/common/utils/SecurityUtil.java |   94 +-
 .../airavata/common/utils/ServerSettings.java      |  113 +-
 .../apache/airavata/common/utils/StringUtil.java   |  611 ++---
 .../apache/airavata/common/utils/SwingUtil.java    |  134 +-
 .../airavata/common/utils/ThriftClientPool.java    |   85 +-
 .../apache/airavata/common/utils/ThriftUtils.java  |   94 +-
 .../org/apache/airavata/common/utils/Version.java  |  219 +-
 .../apache/airavata/common/utils/WSConstants.java  |   64 +-
 .../org/apache/airavata/common/utils/WSDLUtil.java |  821 +++---
 .../apache/airavata/common/utils/ZkConstants.java  |   51 +-
 .../common/utils/ApplicationSettingsTest.java      |   42 +-
 .../airavata/common/utils/SecurityUtilTest.java    |   60 +-
 .../common/utils/ThriftClientPoolTest.java         |   60 +-
 modules/compute-account-provisioning/pom.xml       |   32 +-
 .../airavata/accountprovisioning/ConfigParam.java  |   36 +-
 .../accountprovisioning/InvalidSetupException.java |   39 +-
 .../InvalidUsernameException.java                  |   39 +-
 .../accountprovisioning/SSHAccountManager.java     |  180 +-
 .../accountprovisioning/SSHAccountProvisioner.java |   36 +-
 .../SSHAccountProvisionerFactory.java              |   44 +-
 .../SSHAccountProvisionerProvider.java             |   38 +-
 .../airavata/accountprovisioning/SSHUtil.java      |   65 +-
 .../provisioner/IULdapSSHAccountProvisioner.java   |  120 +-
 .../IULdapSSHAccountProvisionerProvider.java       |   57 +-
 .../SSHAccountProvisionerFactoryTest.java          |   60 +-
 .../provisioner/TestSSHAccountProvisioner.java     |   42 +-
 .../TestSSHAccountProvisionerProvider.java         |   49 +-
 .../computer-resource-monitoring-service/pom.xml   |   19 +-
 .../ComputationalResourceMonitoringService.java    |   54 +-
 .../monitoring/job/ComputeResourceMonitor.java     |  107 +-
 .../resource/monitoring/job/MonitoringJob.java     |  115 +-
 .../monitoring/job/output/OutputParser.java        |   23 +-
 .../monitoring/job/output/OutputParserImpl.java    |   27 +-
 .../resource/monitoring/utils/Constants.java       |   25 +-
 modules/configuration/client/pom.xml               |   32 +-
 modules/configuration/pom.xml                      |   32 +-
 modules/configuration/server/pom.xml               |   32 +-
 .../credential-store-service/pom.xml               |   32 +-
 .../credential/store/credential/AuditInfo.java     |   43 +-
 .../credential/store/credential/CommunityUser.java |   36 +-
 .../credential/store/credential/Credential.java    |   46 +-
 .../store/credential/CredentialOwnerType.java      |   36 +-
 .../impl/certificate/CertificateAuditInfo.java     |   41 +-
 .../impl/certificate/CertificateCredential.java    |   44 +-
 .../impl/password/PasswordCredential.java          |   36 +-
 .../store/credential/impl/ssh/SSHCredential.java   |   69 +-
 .../store/notifier/CredentialStoreNotifier.java    |   78 +-
 .../store/notifier/NotificationMessage.java        |   37 +-
 .../store/notifier/NotifierBootstrap.java          |   64 +-
 .../notifier/impl/EmailNotificationMessage.java    |   37 +-
 .../store/notifier/impl/EmailNotifier.java         |   44 +-
 .../notifier/impl/EmailNotifierConfiguration.java  |   50 +-
 .../store/server/CredentialStoreServer.java        |   59 +-
 .../store/server/CredentialStoreServerHandler.java |  361 ++-
 .../store/servlet/CredentialBootstrapper.java      |   43 +-
 .../servlet/CredentialStoreCallbackServlet.java    |   99 +-
 .../store/servlet/CredentialStoreStartServlet.java |   90 +-
 .../credential/store/store/CredentialReader.java   |   55 +-
 .../store/store/CredentialReaderFactory.java       |   41 +-
 .../store/store/CredentialStoreException.java      |   36 +-
 .../credential/store/store/CredentialWriter.java   |   39 +-
 .../store/impl/CertificateCredentialWriter.java    |   67 +-
 .../store/store/impl/CredentialReaderImpl.java     |   81 +-
 .../store/store/impl/SSHCredentialWriter.java      |   48 +-
 .../store/store/impl/db/CommunityUserDAO.java      |   47 +-
 .../store/store/impl/db/CredentialsDAO.java        |  101 +-
 .../credential/store/store/impl/db/ParentDAO.java  |   41 +-
 .../impl/util/CredentialStoreDBInitConfig.java     |   38 +-
 .../store/impl/util/CredentialStoreJDBCConfig.java |   39 +-
 .../credential/store/util/ConfigurationReader.java |   67 +-
 .../store/util/CredentialStoreConstants.java       |   37 +-
 .../credential/store/util/PrivateKeyStore.java     |   39 +-
 .../credential/store/util/TokenGenerator.java      |   47 +-
 .../airavata/credential/store/util/Utility.java    |   63 +-
 .../store/cpi/SSHSummaryTest/SSHSummaryTest.java   |   68 +-
 .../store/notifier/impl/EmailNotifierTest.java     |   52 +-
 .../store/store/impl/db/CommunityUserDAOTest.java  |   46 +-
 .../store/store/impl/db/CredentialsDAOTest.java    |  159 +-
 .../store/store/impl/db/SSHCredentialTest.java     |   49 +-
 .../store/util/ConfigurationReaderTest.java        |   39 +-
 .../credential/store/util/TokenGeneratorTest.java  |   40 +-
 .../credential-store-stubs/pom.xml                 |   32 +-
 .../store/client/CredentialStoreClientFactory.java |   46 +-
 .../credential/store/client/TestSSLClient.java     |   90 +-
 modules/credential-store/pom.xml                   |   36 +-
 modules/db-event-manager/pom.xml                   |   36 +-
 .../db/event/manager/DBEventManagerRunner.java     |   47 +-
 .../manager/messaging/DBEventManagerException.java |   37 +-
 .../messaging/DBEventManagerMessagingFactory.java  |   56 +-
 .../messaging/impl/DBEventMessageHandler.java      |   71 +-
 .../airavata/db/event/manager/utils/Constants.java |   40 +-
 .../event/manager/utils/DbEventManagerZkUtils.java |   87 +-
 modules/db-event-manager/src/test/java/Test.java   |   42 +-
 modules/distribution/pom.xml                       |   32 +-
 modules/file-server/pom.xml                        |   18 +
 .../file/server/FileServerApplication.java         |   23 +-
 .../file/server/FileServerConfiguration.java       |   27 +-
 .../file/server/controller/FileController.java     |   46 +-
 .../file/server/model/AiravataDirectory.java       |   20 +-
 .../airavata/file/server/model/AiravataFile.java   |   40 +-
 .../file/server/model/FileUploadResponse.java      |   19 +
 .../file/server/service/AirvataFileService.java    |   64 +-
 .../file/server/service/ProcessDataManager.java    |   31 +-
 modules/ide-integration/pom.xml                    |   19 +-
 .../airavata/ide/integration/APIServerStarter.java |   19 +
 .../airavata/ide/integration/JobEngineStarter.java |   31 +-
 .../ide/integration/JobMonitorStarter.java         |   19 +
 modules/job-monitor/email-monitor/pom.xml          |   31 +-
 .../airavata/monitor/email/EmailBasedMonitor.java  |  113 +-
 .../email/parser/AiravataCustomMailParser.java     |   56 +-
 .../airavata/monitor/email/parser/EmailParser.java |   44 +-
 .../monitor/email/parser/HTCondorEmailParser.java  |   89 +-
 .../monitor/email/parser/LSFEmailParser.java       |   56 +-
 .../monitor/email/parser/PBSEmailParser.java       |   58 +-
 .../monitor/email/parser/ResourceConfig.java       |   81 +-
 .../monitor/email/parser/SLURMEmailParser.java     |   59 +-
 .../monitor/email/parser/UGEEmailParser.java       |   59 +-
 modules/job-monitor/job-monitor-api/pom.xml        |   31 +-
 .../apache/airavata/monitor/AbstractMonitor.java   |   45 +-
 .../apache/airavata/monitor/JobStateValidator.java |   51 +-
 .../apache/airavata/monitor/JobStatusResult.java   |   38 +-
 .../airavata/monitor/MonitoringException.java      |   22 +-
 .../monitor/kafka/JobStatusResultDeserializer.java |   51 +-
 .../monitor/kafka/JobStatusResultSerializer.java   |   56 +-
 .../airavata/monitor/kafka/MessageProducer.java    |   59 +-
 modules/job-monitor/pom.xml                        |   31 +-
 modules/job-monitor/real-time-monitor/pom.xml      |   31 +-
 .../airavata/monitor/realtime/RealtimeMonitor.java |   46 +-
 .../realtime/parser/RealtimeJobStatusParser.java   |   54 +-
 modules/messaging/client/pom.xml                   |   32 +-
 .../messaging/client/RabbitMQListener.java         |  115 +-
 .../airavata/messaging/client/TestReader.java      |  120 +-
 modules/messaging/core/pom.xml                     |   32 +-
 .../airavata/messaging/core/MessageContext.java    |   54 +-
 .../airavata/messaging/core/MessageHandler.java    |   36 +-
 .../messaging/core/MessagingConstants.java         |   42 +-
 .../airavata/messaging/core/MessagingFactory.java  |   96 +-
 .../apache/airavata/messaging/core/Publisher.java  |   38 +-
 .../messaging/core/RabbitMQProperties.java         |   38 +-
 .../apache/airavata/messaging/core/Subscriber.java |   45 +-
 .../apache/airavata/messaging/core/TestClient.java |   82 +-
 .../org/apache/airavata/messaging/core/Type.java   |   36 +-
 .../messaging/core/impl/ExperimentConsumer.java    |   87 +-
 .../messaging/core/impl/MessageConsumer.java       |   67 +-
 .../messaging/core/impl/ProcessConsumer.java       |   84 +-
 .../messaging/core/impl/RabbitMQPublisher.java     |   71 +-
 .../messaging/core/impl/RabbitMQSubscriber.java    |   92 +-
 .../messaging/core/impl/StatusConsumer.java        |   82 +-
 .../messaging/core/stats/CountWriterTask.java      |   40 +-
 .../messaging/core/stats/LatencyWriterTask.java    |   41 +-
 .../airavata/messaging/core/stats/StatCounter.java |   45 +-
 .../messaging/core/util/DBEventPublisherUtils.java |   53 +-
 modules/messaging/pom.xml                          |   36 +-
 modules/orchestrator/orchestrator-client/pom.xml   |   32 +-
 .../client/OrchestratorClientFactory.java          |   41 +-
 .../sample/OrchestratorClientSample.java           |  128 +-
 modules/orchestrator/orchestrator-core/pom.xml     |   32 +-
 .../core/OrchestratorConfiguration.java            |   37 +-
 .../core/context/OrchestratorContext.java          |   36 +-
 .../core/exception/OrchestratorException.java      |   38 +-
 .../core/impl/GFACPassiveJobSubmitter.java         |   74 +-
 .../orchestrator/core/job/JobSubmitter.java        |   41 +-
 .../core/schedule/DefaultHostScheduler.java        |   40 +-
 .../orchestrator/core/schedule/HostScheduler.java  |   39 +-
 .../core/utils/OrchestratorConstants.java          |   38 +-
 .../orchestrator/core/utils/OrchestratorUtils.java |  192 +-
 .../core/validator/JobMetadataValidator.java       |   37 +-
 .../core/validator/impl/BatchQueueValidator.java   |  134 +-
 .../validator/impl/ExperimentStatusValidator.java  |   44 +-
 .../impl/GroupResourceProfileValidator.java        |  101 +-
 .../airavata/orchestrator/cpi/Orchestrator.java    |   48 +-
 .../cpi/impl/AbstractOrchestrator.java             |   99 +-
 .../cpi/impl/SimpleOrchestratorImpl.java           |  421 +--
 .../orchestrator/core/BaseOrchestratorTest.java    |   41 +-
 .../orchestrator/core/NewOrchestratorTest.java     |  184 +-
 .../core/OrchestratorTestWithGRAM.java             |  147 +-
 .../core/OrchestratorTestWithMyProxyAuth.java      |  153 +-
 modules/orchestrator/orchestrator-service/pom.xml  |   32 +-
 .../orchestrator/server/OrchestratorServer.java    |   77 +-
 .../server/OrchestratorServerHandler.java          |  484 ++--
 .../airavata/orchestrator/util/Constants.java      |   37 +-
 .../util/OrchestratorServerThreadPoolExecutor.java |   77 +-
 .../orchestrator/util/OrchestratorUtils.java       |  132 +-
 .../client/OrchestratorClientFactoryTest.java      |   46 +-
 modules/orchestrator/pom.xml                       |   36 +-
 modules/platform-monitoring/pom.xml                |   30 +-
 .../airavata/patform/monitoring/CountMonitor.java  |   46 +-
 .../airavata/patform/monitoring/GaugeMonitor.java  |   41 +-
 .../patform/monitoring/MonitoringServer.java       |   46 +-
 modules/registry/pom.xml                           |   32 +-
 modules/registry/registry-core/pom.xml             |   32 +-
 .../airavata/registry/core/RegistryException.java  |   41 +-
 .../AiravataWorkflowEntity.java                    |   71 +-
 .../AiravataWorkflowErrorEntity.java               |   42 +-
 .../AiravataWorkflowErrorPK.java                   |   45 +-
 .../AiravataWorkflowStatusEntity.java              |   44 +-
 .../AiravataWorkflowStatusPK.java                  |   45 +-
 .../ApplicationErrorEntity.java                    |   40 +-
 .../ApplicationErrorPK.java                        |   45 +-
 .../ApplicationStatusEntity.java                   |   44 +-
 .../ApplicationStatusPK.java                       |   45 +-
 .../HandlerErrorEntity.java                        |   46 +-
 .../airavataworkflowcatalog/HandlerErrorPK.java    |   45 +-
 .../HandlerInputEntity.java                        |   49 +-
 .../airavataworkflowcatalog/HandlerInputPK.java    |   45 +-
 .../HandlerOutputEntity.java                       |   49 +-
 .../airavataworkflowcatalog/HandlerOutputPK.java   |   45 +-
 .../HandlerStatusEntity.java                       |   45 +-
 .../airavataworkflowcatalog/HandlerStatusPK.java   |   45 +-
 .../WorkflowApplicationEntity.java                 |   55 +-
 .../WorkflowApplicationPK.java                     |   45 +-
 .../WorkflowConnectionEntity.java                  |   44 +-
 .../WorkflowConnectionPK.java                      |   45 +-
 .../WorkflowDataBlockEntity.java                   |   47 +-
 .../WorkflowHandlerEntity.java                     |   68 +-
 .../airavataworkflowcatalog/WorkflowHandlerPK.java |   45 +-
 .../entities/appcatalog/AppEnvironmentEntity.java  |   47 +-
 .../core/entities/appcatalog/AppEnvironmentPK.java |   43 +-
 .../appcatalog/AppModuleMappingEntity.java         |  122 +-
 .../entities/appcatalog/AppModuleMappingPK.java    |  114 +-
 .../appcatalog/ApplicationDeploymentEntity.java    |   92 +-
 .../appcatalog/ApplicationInputEntity.java         |  314 ++-
 .../entities/appcatalog/ApplicationInputPK.java    |  114 +-
 .../appcatalog/ApplicationInterfaceEntity.java     |  253 +-
 .../appcatalog/ApplicationModuleEntity.java        |  158 +-
 .../appcatalog/ApplicationOutputEntity.java        |   50 +-
 .../entities/appcatalog/ApplicationOutputPK.java   |  114 +-
 .../core/entities/appcatalog/BatchQueueEntity.java |   46 +-
 .../core/entities/appcatalog/BatchQueuePK.java     |  114 +-
 .../appcatalog/BatchQueueResourcePolicyEntity.java |   45 +-
 .../appcatalog/CloudJobSubmissionEntity.java       |   49 +-
 .../entities/appcatalog/ComputeResourceEntity.java |   68 +-
 .../ComputeResourceFileSystemEntity.java           |  125 +-
 .../appcatalog/ComputeResourceFileSystemPK.java    |  118 +-
 .../appcatalog/ComputeResourcePolicyEntity.java    |   50 +-
 .../ComputeResourcePreferenceEntity.java           |   57 +-
 .../appcatalog/ComputeResourcePreferencePK.java    |   48 +-
 .../ComputeResourceReservationEntity.java          |   58 +-
 .../appcatalog/DataMovementInterfaceEntity.java    |   45 +-
 .../appcatalog/DataMovementInterfacePK.java        |   49 +-
 .../entities/appcatalog/GatewayGroupsEntity.java   |   43 +-
 .../entities/appcatalog/GatewayProfileEntity.java  |   57 +-
 .../appcatalog/GlobusGkEndpointEntity.java         |   85 +-
 .../entities/appcatalog/GlobusGkEndpointPK.java    |  114 +-
 .../appcatalog/GlobusSubmissionEntity.java         |   99 +-
 .../appcatalog/GridftpDataMovementEntity.java      |   47 +-
 .../entities/appcatalog/GridftpEndpointEntity.java |   45 +-
 .../entities/appcatalog/GridftpEndpointPK.java     |   49 +-
 .../appcatalog/GroupComputeResourcePrefEntity.java |   67 +-
 .../appcatalog/GroupComputeResourcePrefPK.java     |   45 +-
 .../appcatalog/GroupResourceProfileEntity.java     |   63 +-
 .../GroupSSHAccountProvisionerConfig.java          |   54 +-
 .../GroupSSHAccountProvisionerConfigPK.java        |   47 +-
 .../entities/appcatalog/GsisshExportEntity.java    |   43 +-
 .../core/entities/appcatalog/GsisshExportPK.java   |  114 +-
 .../appcatalog/GsisshPostjobcommandEntity.java     |   83 +-
 .../appcatalog/GsisshPostjobcommandPK.java         |  110 +-
 .../appcatalog/GsisshPrejobcommandEntity.java      |   43 +-
 .../entities/appcatalog/GsisshPrejobcommandPK.java |  114 +-
 .../appcatalog/GsisshSubmissionEntity.java         |  128 +-
 .../appcatalog/JobManagerCommandEntity.java        |   47 +-
 .../entities/appcatalog/JobManagerCommandPK.java   |   52 +-
 .../appcatalog/JobSubmissionInterfaceEntity.java   |   45 +-
 .../appcatalog/JobSubmissionInterfacePK.java       |   49 +-
 .../appcatalog/LibraryApendPathEntity.java         |   49 +-
 .../entities/appcatalog/LibraryAppendPathPK.java   |   41 +-
 .../appcatalog/LibraryPrependPathEntity.java       |  127 +-
 .../entities/appcatalog/LibraryPrependPathPK.java  |   39 +-
 .../appcatalog/LocalDataMovementEntity.java        |   43 +-
 .../entities/appcatalog/LocalSubmissionEntity.java |   47 +-
 .../entities/appcatalog/ModuleLoadCmdEntity.java   |   46 +-
 .../core/entities/appcatalog/ModuleLoadCmdPK.java  |   41 +-
 .../appcatalog/ParallelismCommandEntity.java       |   47 +-
 .../entities/appcatalog/ParallelismCommandPK.java  |   52 +-
 .../entities/appcatalog/ParserConnectorEntity.java |   47 +-
 .../appcatalog/ParserConnectorInputEntity.java     |   39 +-
 .../core/entities/appcatalog/ParserEntity.java     |   55 +-
 .../entities/appcatalog/ParserInputEntity.java     |   39 +-
 .../entities/appcatalog/ParserOutputEntity.java    |   39 +-
 .../entities/appcatalog/ParsingTemplateEntity.java |   55 +-
 .../appcatalog/ParsingTemplateInputEntity.java     |   39 +-
 .../entities/appcatalog/PostjobCommandEntity.java  |   57 +-
 .../core/entities/appcatalog/PostjobCommandPK.java |   42 +-
 .../entities/appcatalog/PrejobCommandEntity.java   |   57 +-
 .../core/entities/appcatalog/PrejobCommandPK.java  |  114 +-
 .../appcatalog/ResourceJobManagerEntity.java       |   45 +-
 .../SSHAccountProvisionerConfiguration.java        |   48 +-
 .../SSHAccountProvisionerConfigurationPK.java      |   37 +-
 .../entities/appcatalog/ScpDataMovementEntity.java |   46 +-
 .../appcatalog/SshJobSubmissionEntity.java         |  174 +-
 .../appcatalog/StorageInterfaceEntity.java         |   49 +-
 .../entities/appcatalog/StorageInterfacePK.java    |  115 +-
 .../appcatalog/StoragePreferenceEntity.java        |   40 +-
 .../entities/appcatalog/StoragePreferencePK.java   |   48 +-
 .../entities/appcatalog/StorageResourceEntity.java |   49 +-
 .../appcatalog/UnicoreDatamovementEntity.java      |  102 +-
 .../appcatalog/UnicoreSubmissionEntity.java        |  102 +-
 .../UserComputeResourcePreferenceEntity.java       |   45 +-
 .../UserComputeResourcePreferencePK.java           |   52 +-
 .../appcatalog/UserResourceProfileEntity.java      |   60 +-
 .../entities/appcatalog/UserResourceProfilePK.java |   48 +-
 .../appcatalog/UserStoragePreferenceEntity.java    |   46 +-
 .../appcatalog/UserStoragePreferencePK.java        |   52 +-
 .../ComputationalResourceSchedulingEntity.java     |   24 +-
 .../ComputationalResourceSchedulingPK.java         |   34 +-
 .../core/entities/expcatalog/ExperimentEntity.java |   91 +-
 .../entities/expcatalog/ExperimentErrorEntity.java |   44 +-
 .../entities/expcatalog/ExperimentErrorPK.java     |   48 +-
 .../entities/expcatalog/ExperimentInputEntity.java |   63 +-
 .../entities/expcatalog/ExperimentInputPK.java     |   48 +-
 .../expcatalog/ExperimentOutputEntity.java         |   44 +-
 .../entities/expcatalog/ExperimentOutputPK.java    |   48 +-
 .../expcatalog/ExperimentStatusEntity.java         |   45 +-
 .../entities/expcatalog/ExperimentStatusPK.java    |   48 +-
 .../expcatalog/ExperimentSummaryEntity.java        |   39 +-
 .../core/entities/expcatalog/GatewayEntity.java    |   49 +-
 .../GatewayUsageReportingCommandEntity.java        |   40 +-
 .../expcatalog/GatewayUsageReportingPK.java        |   47 +-
 .../entities/expcatalog/GatewayWorkerEntity.java   |   42 +-
 .../core/entities/expcatalog/GatewayWorkerPK.java  |   46 +-
 .../core/entities/expcatalog/JobEntity.java        |   47 +-
 .../registry/core/entities/expcatalog/JobPK.java   |   47 +-
 .../core/entities/expcatalog/JobStatusEntity.java  |   45 +-
 .../core/entities/expcatalog/JobStatusPK.java      |   52 +-
 .../entities/expcatalog/NotificationEntity.java    |   45 +-
 .../core/entities/expcatalog/ProcessEntity.java    |   90 +-
 .../entities/expcatalog/ProcessErrorEntity.java    |   43 +-
 .../core/entities/expcatalog/ProcessErrorPK.java   |   48 +-
 .../entities/expcatalog/ProcessInputEntity.java    |   59 +-
 .../core/entities/expcatalog/ProcessInputPK.java   |   48 +-
 .../entities/expcatalog/ProcessOutputEntity.java   |   43 +-
 .../core/entities/expcatalog/ProcessOutputPK.java  |   48 +-
 .../expcatalog/ProcessResourceScheduleEntity.java  |   40 +-
 .../entities/expcatalog/ProcessStatusEntity.java   |   45 +-
 .../core/entities/expcatalog/ProcessStatusPK.java  |   48 +-
 .../entities/expcatalog/ProcessWorkflowEntity.java |   20 +-
 .../entities/expcatalog/ProcessWorkflowPK.java     |   23 +-
 .../core/entities/expcatalog/ProjectEntity.java    |   44 +-
 .../entities/expcatalog/ProjectUserEntity.java     |   42 +-
 .../core/entities/expcatalog/ProjectUserPK.java    |   46 +-
 .../entities/expcatalog/QueueStatusEntity.java     |   42 +-
 .../core/entities/expcatalog/QueueStatusPK.java    |   51 +-
 .../core/entities/expcatalog/TaskEntity.java       |   62 +-
 .../core/entities/expcatalog/TaskErrorEntity.java  |   43 +-
 .../core/entities/expcatalog/TaskErrorPK.java      |   48 +-
 .../core/entities/expcatalog/TaskStatusEntity.java |   45 +-
 .../core/entities/expcatalog/TaskStatusPK.java     |   48 +-
 .../expcatalog/UserConfigurationDataEntity.java    |   54 +-
 .../core/entities/expcatalog/UserEntity.java       |   19 +
 .../registry/core/entities/expcatalog/UserPK.java  |   23 +-
 .../replicacatalog/ConfigurationEntity.java        |   38 +-
 .../entities/replicacatalog/ConfigurationPK.java   |   47 +-
 .../entities/replicacatalog/DataProductEntity.java |   58 +-
 .../replicacatalog/DataProductMetadataEntity.java  |   38 +-
 .../replicacatalog/DataProductMetadataPK.java      |   47 +-
 .../replicacatalog/DataReplicaLocationEntity.java  |   44 +-
 .../replicacatalog/DataReplicaMetadataEntity.java  |   38 +-
 .../replicacatalog/DataReplicaMetadataPK.java      |   44 +-
 .../workflowcatalog/ComponentStatusEntity.java     |   43 +-
 .../core/entities/workflowcatalog/EdgeEntity.java  |   45 +-
 .../core/entities/workflowcatalog/EdgePK.java      |   48 +-
 .../core/entities/workflowcatalog/NodeEntity.java  |   45 +-
 .../core/entities/workflowcatalog/NodePK.java      |   48 +-
 .../core/entities/workflowcatalog/PortEntity.java  |   46 +-
 .../core/entities/workflowcatalog/PortPK.java      |  114 +-
 .../entities/workflowcatalog/WorkflowEntity.java   |   65 +-
 .../workflowcatalog/WorkflowInputEntity.java       |   42 +-
 .../entities/workflowcatalog/WorkflowInputPK.java  |   48 +-
 .../workflowcatalog/WorkflowOutputEntity.java      |  246 +-
 .../entities/workflowcatalog/WorkflowOutputPK.java |  114 +-
 .../workflowcatalog/WorkflowStatusEntity.java      |   42 +-
 .../entities/workflowcatalog/WorkflowStatusPK.java |   48 +-
 .../core/repositories/AbstractRepository.java      |  111 +-
 .../appcatalog/AppCatAbstractRepository.java       |   40 +-
 .../ApplicationDeploymentRepository.java           |  170 +-
 .../appcatalog/ApplicationInputRepository.java     |   42 +-
 .../appcatalog/ApplicationInterfaceRepository.java |  165 +-
 .../appcatalog/ApplicationModuleRepository.java    |   42 +-
 .../appcatalog/ApplicationOutputRepository.java    |   42 +-
 .../appcatalog/BatchQueuePolicyRepository.java     |   39 +-
 .../appcatalog/BatchQueueRepository.java           |   36 +-
 .../ComputeResourcePolicyRepository.java           |   39 +-
 .../appcatalog/ComputeResourcePrefRepository.java  |   61 +-
 .../appcatalog/ComputeResourceRepository.java      |  294 ++-
 .../appcatalog/DataMovementRepository.java         |   42 +-
 .../appcatalog/GatewayGroupsRepository.java        |   39 +-
 .../appcatalog/GroupResourceProfileRepository.java |  100 +-
 .../appcatalog/GrpComputePrefRepository.java       |   40 +-
 .../appcatalog/GwyResourceProfileRepository.java   |  131 +-
 .../JobSubmissionInterfaceRepository.java          |   43 +-
 .../appcatalog/ParserInputRepository.java          |   21 +-
 .../appcatalog/ParserOutputRepository.java         |   23 +-
 .../repositories/appcatalog/ParserRepository.java  |   28 +-
 .../appcatalog/ParsingTemplateRepository.java      |   29 +-
 .../appcatalog/ResourceJobManagerRepository.java   |   75 +-
 .../appcatalog/StoragePrefRepository.java          |   39 +-
 .../appcatalog/StorageResourceRepository.java      |  145 +-
 .../UserComputeResourcePreferenceRepository.java   |   43 +-
 .../appcatalog/UserResourceProfileRepository.java  |  121 +-
 .../UserStoragePreferenceRepository.java           |   42 +-
 .../expcatalog/ExpCatAbstractRepository.java       |   22 +-
 .../expcatalog/ExperimentErrorRepository.java      |   49 +-
 .../expcatalog/ExperimentInputRepository.java      |   60 +-
 .../expcatalog/ExperimentOutputRepository.java     |   56 +-
 .../expcatalog/ExperimentRepository.java           |  102 +-
 .../expcatalog/ExperimentStatusRepository.java     |   87 +-
 .../expcatalog/ExperimentSummaryRepository.java    |  337 ++-
 .../repositories/expcatalog/GatewayRepository.java |   65 +-
 .../GatewayUsageReportingCommandRepository.java    |   60 +-
 .../repositories/expcatalog/JobRepository.java     |   70 +-
 .../expcatalog/JobStatusRepository.java            |   77 +-
 .../expcatalog/NotificationRepository.java         |   66 +-
 .../expcatalog/ProcessErrorRepository.java         |   53 +-
 .../expcatalog/ProcessInputRepository.java         |   57 +-
 .../expcatalog/ProcessOutputRepository.java        |   60 +-
 .../repositories/expcatalog/ProcessRepository.java |  103 +-
 .../expcatalog/ProcessStatusRepository.java        |   80 +-
 .../expcatalog/ProcessWorkflowRepository.java      |   32 +-
 .../repositories/expcatalog/ProjectRepository.java |  110 +-
 .../expcatalog/QueueStatusRepository.java          |   53 +-
 .../expcatalog/TaskErrorRepository.java            |   29 +-
 .../repositories/expcatalog/TaskRepository.java    |   63 +-
 .../expcatalog/TaskStatusRepository.java           |   52 +-
 .../repositories/expcatalog/UserRepository.java    |   52 +-
 .../replicacatalog/DataProductRepository.java      |   76 +-
 .../DataReplicaLocationRepository.java             |   70 +-
 .../replicacatalog/RepCatAbstractRepository.java   |   40 +-
 .../WorkflowCatAbstractRepository.java             |   40 +-
 .../workflowcatalog/WorkflowRepository.java        |  119 +-
 .../core/utils/AppCatalogDBInitConfig.java         |   41 +-
 .../registry/core/utils/AppCatalogJDBCConfig.java  |   40 +-
 .../registry/core/utils/AppCatalogUtils.java       |   38 +-
 .../airavata/registry/core/utils/Committer.java    |   41 +-
 .../registry/core/utils/CustomBeanFactory.java     |   50 +-
 .../airavata/registry/core/utils/DBConstants.java  |   46 +-
 .../utils/DozerConverter/CsvStringConverter.java   |   42 +-
 .../utils/DozerConverter/StorageDateConverter.java |   45 +-
 .../core/utils/ExpCatalogDBInitConfig.java         |   38 +-
 .../registry/core/utils/ExpCatalogJDBCConfig.java  |   39 +-
 .../registry/core/utils/ExpCatalogUtils.java       |   38 +-
 .../core/utils/JPAUtil/AppCatalogJPAUtils.java     |   41 +-
 .../core/utils/JPAUtil/ExpCatalogJPAUtils.java     |   40 +-
 .../core/utils/JPAUtil/RepCatalogJPAUtils.java     |   43 +-
 .../utils/JPAUtil/WorkflowCatalogJPAUtils.java     |   40 +-
 .../registry/core/utils/ObjectMapperSingleton.java |   77 +-
 .../registry/core/utils/QueryConstants.java        |  383 +--
 .../core/utils/ReplicaCatalogDBInitConfig.java     |   38 +-
 .../core/utils/ReplicaCatalogJDBCConfig.java       |   38 +-
 .../core/utils/WorkflowCatalogDBInitConfig.java    |   38 +-
 .../core/utils/WorkflowCatalogJDBCConfig.java      |   38 +-
 .../registry/core/utils/WorkflowCatalogUtils.java  |   38 +-
 .../core/utils/migration/MappingToolRunner.java    |   25 +-
 .../utils/migration/MigrationSchemaGenerator.java  |   41 +-
 .../ApplicationDeploymentRepositoryTest.java       |  168 +-
 .../ApplicationInterfaceRepositoryTest.java        |  165 +-
 .../appcatalog/ComputeResourceRepositoryTest.java  |  154 +-
 .../appcatalog/GatewayGroupsRepositoryTest.java    |   41 +-
 .../appcatalog/GatewayProfileRepositoryTest.java   |   80 +-
 .../GroupResourceProfileRepositoryTest.java        |  251 +-
 .../JobSubmissionInterfaceRepositoryTest.java      |   43 +-
 .../appcatalog/StorageResourceRepositoryTest.java  |   73 +-
 .../UserResourceProfileRepositoryTest.java         |   65 +-
 .../core/repositories/common/TestBase.java         |   45 +-
 .../expcatalog/ExperimentErrorRepositoryTest.java  |   46 +-
 .../expcatalog/ExperimentInputRepositoryTest.java  |   57 +-
 .../expcatalog/ExperimentOutputRepositoryTest.java |   61 +-
 .../expcatalog/ExperimentRepositoryTest.java       |   76 +-
 .../expcatalog/ExperimentStatusRepositoryTest.java |   61 +-
 .../ExperimentSummaryRepositoryTest.java           |  150 +-
 .../expcatalog/GatewayRepositoryTest.java          |   54 +-
 .../repositories/expcatalog/JobRepositoryTest.java |   49 +-
 .../expcatalog/JobStatusRepositoryTest.java        |   44 +-
 .../expcatalog/NotificationRepositoryTest.java     |   47 +-
 .../expcatalog/ProcessErrorRepositoryTest.java     |   46 +-
 .../expcatalog/ProcessInputRepositoryTest.java     |   49 +-
 .../expcatalog/ProcessOutputRepositoryTest.java    |   48 +-
 .../expcatalog/ProcessRepositoryTest.java          |   70 +-
 .../expcatalog/ProcessStatusRepositoryTest.java    |   56 +-
 .../expcatalog/ProjectRepositoryTest.java          |   61 +-
 .../expcatalog/QueueStatusRepositoryTest.java      |   48 +-
 .../expcatalog/TaskErrorRepositoryTest.java        |   46 +-
 .../expcatalog/TaskRepositoryTest.java             |   48 +-
 .../expcatalog/TaskStatusRepositoryTest.java       |   26 +-
 .../expcatalog/UserRepositoryTest.java             |   56 +-
 .../replicacatalog/DataProductRepositoryTest.java  |   63 +-
 .../DataReplicaLocationRepositoryTest.java         |   82 +-
 .../workflowcatalog/WorkflowRepositoryTest.java    |   54 +-
 .../registry/core/utils/CustomBeanFactoryTest.java |   60 +-
 .../core/utils/ObjectMapperSingletonTest.java      |   55 +-
 modules/registry/registry-cpi/pom.xml              |   36 +-
 .../apache/airavata/registry/cpi/AppCatalog.java   |   36 +-
 .../airavata/registry/cpi/AppCatalogException.java |   38 +-
 .../registry/cpi/ApplicationDeployment.java        |   70 +-
 .../registry/cpi/ApplicationInterface.java         |   67 +-
 .../airavata/registry/cpi/CompositeIdentifier.java |   48 +-
 .../airavata/registry/cpi/ComputeResource.java     |  187 +-
 .../registry/cpi/DataProductInterface.java         |   27 +-
 .../registry/cpi/DataReplicaLocationInterface.java |   23 +-
 .../airavata/registry/cpi/ExpCatChildDataType.java |   38 +-
 .../registry/cpi/ExpCatParentDataType.java         |   39 +-
 .../airavata/registry/cpi/ExperimentCatalog.java   |   98 +-
 .../registry/cpi/ExperimentCatalogException.java   |   36 +-
 .../registry/cpi/ExperimentCatalogModelType.java   |   36 +-
 .../airavata/registry/cpi/GwyClientCredential.java |   36 +-
 .../airavata/registry/cpi/GwyResourceProfile.java  |   60 +-
 .../org/apache/airavata/registry/cpi/Registry.java |   42 +-
 .../airavata/registry/cpi/RegistryException.java   |   36 +-
 .../airavata/registry/cpi/ReplicaCatalog.java      |   37 +-
 .../registry/cpi/ReplicaCatalogException.java      |   38 +-
 .../airavata/registry/cpi/ResultOrderType.java     |   74 +-
 .../airavata/registry/cpi/StorageResource.java     |   46 +-
 .../airavata/registry/cpi/UsrResourceProfile.java  |   65 +-
 .../airavata/registry/cpi/WorkflowCatalog.java     |   48 +-
 .../registry/cpi/WorkflowCatalogException.java     |   38 +-
 .../airavata/registry/cpi/utils/Constants.java     |   36 +-
 .../airavata/registry/cpi/utils/StatusType.java    |   36 +-
 modules/registry/registry-server/pom.xml           |   36 +-
 .../registry-server/registry-api-service/pom.xml   |   32 +-
 .../registry/api/service/RegistryAPIServer.java    |   67 +-
 .../api/service/handler/RegistryServerHandler.java | 1499 +++++++----
 .../messaging/RegistryServiceDBEventHandler.java   |   65 +-
 .../RegistryServiceDBEventMessagingFactory.java    |   65 +-
 .../registry/api/service/util/Constants.java       |   53 +-
 .../registry-server/registry-api-stubs/pom.xml     |   32 +-
 .../api/client/RegistryServiceClientFactory.java   |   41 +-
 modules/registry/registry-tools/jpa-gen/pom.xml    |   36 +-
 .../computeresource/BatchQueueGenerator.java       |  149 +-
 .../ComputeResourceDescriptionGenerator.java       |  131 +-
 .../DataMovementInterfaceGenerator.java            |  143 +-
 .../computeresource/FileSystemsGenerator.java      |  141 +-
 .../GridFTPDataMovementGenerator.java              |  131 +-
 .../computeresource/GridFTPEndpointsGenerator.java |  140 +-
 .../JobManagerCommandGenerator.java                |  144 +-
 .../JobSubmissionInterfaceGenerator.java           |  143 +-
 .../LocalDataMovementGenerator.java                |  128 +-
 .../computeresource/LocalSubmissionGenerator.java  |  139 +-
 .../computeresource/ModuleCMDGenerator.java        |   54 +-
 .../ResourceJobManagerGenerator.java               |  139 +-
 .../computeresource/SCPDataMovementGenerator.java  |  134 +-
 .../computeresource/SSHJobSubmissionGenerator.java |  145 +-
 .../main/java/generators/AbstractGenerator.java    |  224 +-
 .../main/java/generators/JPAClassGenerator.java    |  434 ++--
 .../java/generators/JPAResourceClassGenerator.java | 1123 ++++----
 .../src/main/java/generators/SQLGenerator.java     |  124 +-
 .../jpa-gen/src/main/java/model/JPAClassField.java |   89 +-
 .../jpa-gen/src/main/java/model/JPAClassModel.java |   54 +-
 .../src/main/java/model/JPAPKClassModel.java       |   46 +-
 .../src/main/java/model/JPAResourceClassModel.java |   47 +-
 .../jpa-gen/src/main/java/model/SQLData.java       |  144 +-
 .../jpa-gen/src/main/java/test/Test.java           |  129 +-
 modules/registry/registry-tools/pom.xml            |   36 +-
 .../registry/registry-tools/registry-tool/pom.xml  |   32 +-
 .../apache/airavata/registry/tool/DBMigrator.java  |  142 +-
 modules/research-framework/pom.xml                 |   35 +-
 .../research-framework/research-service/pom.xml    |   35 +-
 .../airavata/research/service/AiravataService.java |   41 +-
 .../service/ResearchServiceApplication.java        |   37 +-
 .../research/service/config/AuthzTokenFilter.java  |   73 +-
 .../service/config/DevDataInitializer.java         |  108 +-
 .../research/service/config/OpenApiConfig.java     |   51 +-
 .../research/service/config/WebMvcConfig.java      |   37 +-
 .../controller/GlobalExceptionController.java      |   54 +-
 .../service/controller/ProjectController.java      |   43 +-
 .../service/controller/ResearchHubController.java  |   41 +-
 .../service/controller/ResourceController.java     |   76 +-
 .../service/controller/SessionController.java      |   47 +-
 .../research/service/dto/CreateProjectRequest.java |   37 +-
 .../service/dto/CreateResourceRequest.java         |   40 +-
 .../service/dto/ModifyResourceRequest.java         |   37 +-
 .../research/service/dto/RedirectResponse.java     |   37 +-
 .../research/service/dto/ResourceResponse.java     |   37 +-
 .../research/service/enums/PrivacyEnum.java        |   37 +-
 .../research/service/enums/ResourceTypeEnum.java   |   38 +-
 .../research/service/enums/SessionStatusEnum.java  |   37 +-
 .../research/service/enums/StatusEnum.java         |   37 +-
 .../research/service/exception/ErrorResponse.java  |   37 +-
 .../service/exception/GlobalExceptionHandler.java  |   44 +-
 .../research/service/handlers/ProjectHandler.java  |   53 +-
 .../service/handlers/ResearchHubHandler.java       |   91 +-
 .../research/service/handlers/ResourceHandler.java |   66 +-
 .../research/service/handlers/SessionHandler.java  |   50 +-
 .../research/service/model/UserContext.java        |   37 +-
 .../service/model/entity/DatasetResource.java      |   37 +-
 .../service/model/entity/ModelResource.java        |   37 +-
 .../service/model/entity/NotebookResource.java     |   37 +-
 .../research/service/model/entity/Project.java     |   47 +-
 .../service/model/entity/RepositoryResource.java   |   37 +-
 .../research/service/model/entity/Resource.java    |   52 +-
 .../research/service/model/entity/Session.java     |   43 +-
 .../research/service/model/entity/Tag.java         |   37 +-
 .../service/model/repo/ProjectRepository.java      |   42 +-
 .../service/model/repo/ResourceRepository.java     |   54 +-
 .../service/model/repo/SessionRepository.java      |   45 +-
 .../research/service/model/repo/TagRepository.java |   37 +-
 modules/security/pom.xml                           |   32 +-
 .../airavata/security/AbstractAuthenticator.java   |   55 +-
 .../security/AbstractDatabaseAuthenticator.java    |   45 +-
 .../security/AiravataSecurityException.java        |   37 +-
 .../airavata/security/AuthenticationException.java |   37 +-
 .../apache/airavata/security/Authenticator.java    |   55 +-
 .../org/apache/airavata/security/Authoriser.java   |   39 +-
 .../org/apache/airavata/security/UserStore.java    |   38 +-
 .../airavata/security/UserStoreException.java      |   38 +-
 .../AbstractConfigurationReader.java               |   41 +-
 .../AuthenticatorConfigurationReader.java          |   86 +-
 .../security/userstore/AbstractJDBCUserStore.java  |   46 +-
 .../airavata/security/userstore/JDBCUserStore.java |   71 +-
 .../airavata/security/userstore/LDAPUserStore.java |   47 +-
 .../security/userstore/SessionDBUserStore.java     |   57 +-
 .../airavata/security/util/PasswordDigester.java   |   49 +-
 .../airavata/security/util/TrustStoreManager.java  |   50 +-
 .../AuthenticatorConfigurationReaderTest.java      |   74 +-
 .../configurations/TestDBAuthenticator1.java       |   36 +-
 .../configurations/TestDBAuthenticator2.java       |   36 +-
 .../configurations/TestDBAuthenticator3.java       |   36 +-
 .../security/configurations/TestUserStore.java     |   42 +-
 .../security/userstore/JDBCUserStoreTest.java      |   73 +-
 .../security/userstore/LDAPUserStoreTest.java      |   46 +-
 .../security/userstore/SessionDBUserStoreTest.java |   58 +-
 modules/server/pom.xml                             |   32 +-
 .../org/apache/airavata/server/ServerMain.java     |  795 +++---
 modules/sharing-registry/pom.xml                   |   36 +-
 .../sharing-registry/sharing-data-migrator/pom.xml |   32 +-
 .../migrator/airavata/AiravataDataMigrator.java    |  477 ++--
 .../migrator/airavata/ConnectionFactory.java       |   56 +-
 .../sharing-registry-distribution/pom.xml          |   32 +-
 .../sharing-registry-server/pom.xml                |   32 +-
 .../sharing/registry/db/entities/DomainEntity.java |   43 +-
 .../sharing/registry/db/entities/EntityEntity.java |   60 +-
 .../sharing/registry/db/entities/EntityPK.java     |   46 +-
 .../registry/db/entities/EntityTypeEntity.java     |   48 +-
 .../sharing/registry/db/entities/EntityTypePK.java |   51 +-
 .../registry/db/entities/GroupAdminEntity.java     |   28 +-
 .../sharing/registry/db/entities/GroupAdminPK.java |   28 +-
 .../db/entities/GroupMembershipEntity.java         |   43 +-
 .../registry/db/entities/GroupMembershipPK.java    |   45 +-
 .../registry/db/entities/PermissionTypeEntity.java |   49 +-
 .../registry/db/entities/PermissionTypePK.java     |   51 +-
 .../registry/db/entities/SharingEntity.java        |   49 +-
 .../sharing/registry/db/entities/SharingPK.java    |   58 +-
 .../sharing/registry/db/entities/UserEntity.java   |   45 +-
 .../registry/db/entities/UserGroupEntity.java      |   52 +-
 .../sharing/registry/db/entities/UserGroupPK.java  |   48 +-
 .../sharing/registry/db/entities/UserPK.java       |   48 +-
 .../db/repositories/AbstractRepository.java        |   95 +-
 .../registry/db/repositories/DomainRepository.java |   42 +-
 .../registry/db/repositories/EntityRepository.java |  148 +-
 .../db/repositories/EntityTypeRepository.java      |   40 +-
 .../db/repositories/GroupAdminRepository.java      |   22 +-
 .../db/repositories/GroupMembershipRepository.java |  106 +-
 .../db/repositories/PermissionTypeRepository.java  |   52 +-
 .../db/repositories/SharingRepository.java         |   75 +-
 .../db/repositories/UserGroupRepository.java       |   93 +-
 .../registry/db/repositories/UserRepository.java   |   90 +-
 .../sharing/registry/db/utils/Committer.java       |   40 +-
 .../sharing/registry/db/utils/DBConstants.java     |   40 +-
 .../sharing/registry/db/utils/JPAUtils.java        |   40 +-
 .../registry/db/utils/ObjectMapperSingleton.java   |   49 +-
 .../db/utils/SharingRegistryDBInitConfig.java      |   38 +-
 .../db/utils/SharingRegistryJDBCConfig.java        |   39 +-
 .../messaging/SharingServiceDBEventHandler.java    |  225 +-
 .../SharingServiceDBEventMessagingFactory.java     |   69 +-
 .../sharing/registry/server/ServerMain.java        |   97 +-
 .../registry/server/SharingRegistryServer.java     |   61 +-
 .../server/SharingRegistryServerHandler.java       |  598 +++--
 .../airavata/sharing/registry/utils/Constants.java |   53 +-
 .../registry/utils/ThriftDataModelConversion.java  |   39 +-
 .../airavata/sharing/registry/CipresTest.java      |  408 +--
 .../registry/SharingRegistryServerHandlerTest.java |  174 +-
 .../registry/SharingRegistryServiceTest.java       |  268 +-
 .../sharing-registry-stubs/pom.xml                 |   32 +-
 .../SharingRegistryServiceClientFactory.java       |   43 +-
 tools/load-client/pom.xml                          |   19 +-
 .../apache/airavata/tools/load/Authenticator.java  |   47 +-
 .../apache/airavata/tools/load/Configuration.java  |   35 +-
 .../apache/airavata/tools/load/Configurations.java |   21 +-
 .../org/apache/airavata/tools/load/LoadClient.java |   91 +-
 .../airavata/tools/load/SecurityManager.java       |   45 +-
 .../apache/airavata/tools/load/StatusMonitor.java  |   97 +-
 .../tools/load/StorageResourceManager.java         |   60 +-
 .../org/apache/airavata/tools/load/UnitLoad.java   |   79 +-
 tools/pom.xml                                      |   36 +-
 995 files changed, 41241 insertions(+), 35209 deletions(-)

diff --git a/.github/workflows/style-check.yml b/.github/workflows/style-check.yml
new file mode 100644
index 0000000000..35839b363c
--- /dev/null
+++ b/.github/workflows/style-check.yml
@@ -0,0 +1,23 @@
+name: Style Check
+
+on:
+  pull_request:
+    branches:
+      - master
+  push:
+    branches:
+      - master
+
+jobs:
+  build:
+    runs-on: ubuntu-22.04
+    steps:
+      - name: Set up JDK 17
+        uses: actions/setup-java@v4
+        with:
+          distribution: "temurin"
+          java-version: "17"
+      - name: Checkout code
+        uses: actions/checkout@v4
+      - name: Build with Maven (skip tests)
+        run: mvn spotless:check
diff --git a/airavata-api/airavata-api-client/pom.xml b/airavata-api/airavata-api-client/pom.xml
index a10b8cb9f9..0b969fcfd7 100644
--- a/airavata-api/airavata-api-client/pom.xml
+++ b/airavata-api/airavata-api-client/pom.xml
@@ -1,24 +1,20 @@
-<?xml version="1.0" encoding="UTF-8"?>
 <!--
-
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 
diff --git a/airavata-api/airavata-api-client/src/main/java/org/apache/airavata/api/client/AiravataClientFactory.java b/airavata-api/airavata-api-client/src/main/java/org/apache/airavata/api/client/AiravataClientFactory.java
index 42bd38f8c3..b9ef934feb 100644
--- a/airavata-api/airavata-api-client/src/main/java/org/apache/airavata/api/client/AiravataClientFactory.java
+++ b/airavata-api/airavata-api-client/src/main/java/org/apache/airavata/api/client/AiravataClientFactory.java
@@ -1,58 +1,57 @@
 /**
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
 package org.apache.airavata.api.client;
 
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
 import org.apache.airavata.api.Airavata;
-
 import org.apache.airavata.common.utils.Constants;
 import org.apache.airavata.model.error.AiravataClientException;
 import org.apache.airavata.model.security.AuthzToken;
 import org.apache.thrift.TException;
 import org.apache.thrift.protocol.TBinaryProtocol;
 import org.apache.thrift.protocol.TProtocol;
+import org.apache.thrift.transport.TSSLTransportFactory;
 import org.apache.thrift.transport.TSocket;
 import org.apache.thrift.transport.TTransport;
 import org.apache.thrift.transport.TTransportException;
-import org.apache.thrift.transport.TSSLTransportFactory;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
 public class AiravataClientFactory {
 
-    private final static Logger logger = LoggerFactory.getLogger(AiravataClientFactory.class);
+    private static final Logger logger = LoggerFactory.getLogger(AiravataClientFactory.class);
 
-    public static Airavata.Client createAiravataClient(String serverHost, int serverPort) throws AiravataClientException{
+    public static Airavata.Client createAiravataClient(String serverHost, int serverPort)
+            throws AiravataClientException {
         try {
             TTransport transport = new TSocket(serverHost, serverPort);
             transport.open();
             TProtocol protocol = new TBinaryProtocol(transport);
-//            TMultiplexedProtocol mp = new TMultiplexedProtocol(protocol, "APIServer");
+            //            TMultiplexedProtocol mp = new TMultiplexedProtocol(protocol, "APIServer");
             return new Airavata.Client(protocol);
         } catch (TTransportException e) {
             AiravataClientException exception = new AiravataClientException();
-            exception.setParameter("Unable to connect to the server at "+serverHost+":"+serverPort);
+            exception.setParameter("Unable to connect to the server at " + serverHost + ":" + serverPort);
             throw exception;
         }
     }
@@ -68,12 +67,11 @@ public class AiravataClientFactory {
      * @return
      * @throws AiravataClientConnectException
      */
-    public static Airavata.Client createAiravataSecureClient(String serverHost, int serverPort, String trustStorePath,
-                                                             String trustStorePassword, int clientTimeOut)
+    public static Airavata.Client createAiravataSecureClient(
+            String serverHost, int serverPort, String trustStorePath, String trustStorePassword, int clientTimeOut)
             throws AiravataClientException {
         try {
-            TSSLTransportFactory.TSSLTransportParameters params =
-                    new TSSLTransportFactory.TSSLTransportParameters();
+            TSSLTransportFactory.TSSLTransportParameters params = new TSSLTransportFactory.TSSLTransportParameters();
             params.setTrustStore(trustStorePath, trustStorePassword);
             TSocket transport = TSSLTransportFactory.getClientSocket(serverHost, serverPort, clientTimeOut, params);
             TProtocol protocol = new TBinaryProtocol(transport);
@@ -88,20 +86,23 @@ public class AiravataClientFactory {
 
     public static void main(String a[]) throws TException {
         AuthzToken token = new AuthzToken();
-        token.setAccessToken("eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBUGFKRUpERFc4ZEdzMExnc3ozYUdydERsZ2U0eWlQblFibUNsYnpJX2NVIn0.eyJqdGkiOiI1NmMwZDZmYy0yMGVhLTQ1Y2UtODUwNC1kMTY0MTZkYTdkYzEiLCJleHAiOjE2NDc0NTQyNjcsIm5iZiI6MCwiaWF0IjoxNjQ3NDUyNDY3LCJpc3MiOiJodHRwczovL2lhbWRldi5zY2lnYXAub3JnL2F1dGgvcmVhbG1zL3NlYWdyaWQiLCJhdWQiOiJwZ2EiLCJzdWIiOiI3ZGZkYjI4MS1lNWIzLTQ4MjQtOTcxZC00YzQ2ZmNkMzIwYTEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJwZ2EiLCJhdXRoX3RpbWUiOjAsInNlc3Npb25fc3RhdGUiOiI1NWVkOD [...]
+        token.setAccessToken(
+                "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBUGFKRUpERFc4ZEdzMExnc3ozYUdydERsZ2U0eWlQblFibUNsYnpJX2NVIn0.eyJqdGkiOiI1NmMwZDZmYy0yMGVhLTQ1Y2UtODUwNC1kMTY0MTZkYTdkYzEiLCJleHAiOjE2NDc0NTQyNjcsIm5iZiI6MCwiaWF0IjoxNjQ3NDUyNDY3LCJpc3MiOiJodHRwczovL2lhbWRldi5zY2lnYXAub3JnL2F1dGgvcmVhbG1zL3NlYWdyaWQiLCJhdWQiOiJwZ2EiLCJzdWIiOiI3ZGZkYjI4MS1lNWIzLTQ4MjQtOTcxZC00YzQ2ZmNkMzIwYTEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJwZ2EiLCJhdXRoX3RpbWUiOjAsInNlc3Npb25fc3RhdGUiOiI1NWVkODI5OS0xN2FiLTQ [...]
         Map<String, String> claimsMap = new HashMap<>();
         claimsMap.put(Constants.GATEWAY_ID, "seagrid");
         claimsMap.put(Constants.USER_NAME, "2021test1");
         token.setClaimsMap(claimsMap);
-        Airavata.Client apiClient = createAiravataSecureClient("apidev.scigap.org", 9930,
-                "/Users/eromaabeysinghe/development/local-airavata/airavata/dev-tools/ansible/inventories/scigap/production/files/client_truststore.jks", "airavata",
+        Airavata.Client apiClient = createAiravataSecureClient(
+                "apidev.scigap.org",
+                9930,
+                "/Users/eromaabeysinghe/development/local-airavata/airavata/dev-tools/ansible/inventories/scigap/production/files/client_truststore.jks",
+                "airavata",
                 10000);
 
-
-
         List<String> outputNames = new ArrayList<>();
         outputNames.add("Gaussian-Application-Output");
         outputNames.add("Gaussian-Standar-Out");
-            apiClient.fetchIntermediateOutputs(token,"Clone_of_Gaussian16_on_Mar_16,_2022_1:42_PM_1ad9e887-6ec4-4b1a-9ffb-e028ccb3c86c", outputNames);
+        apiClient.fetchIntermediateOutputs(
+                token, "Clone_of_Gaussian16_on_Mar_16,_2022_1:42_PM_1ad9e887-6ec4-4b1a-9ffb-e028ccb3c86c", outputNames);
     }
-}
\ No newline at end of file
+}
diff --git a/airavata-api/airavata-api-server/pom.xml b/airavata-api/airavata-api-server/pom.xml
index 372b26ac9c..379265e3a9 100644
--- a/airavata-api/airavata-api-server/pom.xml
+++ b/airavata-api/airavata-api-server/pom.xml
@@ -1,24 +1,20 @@
-<?xml version="1.0" encoding="UTF-8"?>
 <!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
 
+http://www.apache.org/licenses/LICENSE-2.0
 
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 
diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/AiravataAPIServer.java b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/AiravataAPIServer.java
index fa24355eee..357485abf2 100644
--- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/AiravataAPIServer.java
+++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/AiravataAPIServer.java
@@ -1,26 +1,29 @@
 /**
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
 package org.apache.airavata.api.server;
 
 import com.google.inject.Guice;
 import com.google.inject.Injector;
+import java.net.InetAddress;
+import java.net.InetSocketAddress;
+import java.net.UnknownHostException;
 import org.apache.airavata.api.Airavata;
 import org.apache.airavata.api.server.handler.AiravataServerHandler;
 import org.apache.airavata.api.server.util.Constants;
@@ -42,89 +45,89 @@ import org.apache.thrift.transport.TTransportException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import java.net.InetAddress;
-import java.net.InetSocketAddress;
-import java.net.UnknownHostException;
-
-public class AiravataAPIServer implements IServer{
+public class AiravataAPIServer implements IServer {
 
-    private final static Logger logger = LoggerFactory.getLogger(AiravataAPIServer.class);
-	private static final String SERVER_NAME = "Airavata API Server";
-	private static final String SERVER_VERSION = "1.0";
+    private static final Logger logger = LoggerFactory.getLogger(AiravataAPIServer.class);
+    private static final String SERVER_NAME = "Airavata API Server";
+    private static final String SERVER_VERSION = "1.0";
 
     private ServerStatus status;
 
-	private TServer server, TLSServer;
+    private TServer server, TLSServer;
 
-	public AiravataAPIServer() {
-		setStatus(ServerStatus.STOPPED);
-	}
+    public AiravataAPIServer() {
+        setStatus(ServerStatus.STOPPED);
+    }
 
-    public void startAiravataServer(Airavata.Processor<Airavata.Iface> airavataAPIServer) throws AiravataSystemException {
+    public void startAiravataServer(Airavata.Processor<Airavata.Iface> airavataAPIServer)
+            throws AiravataSystemException {
         try {
             final String serverHost = ServerSettings.getSetting(Constants.API_SERVER_HOST, null);
             if (!ServerSettings.isTLSEnabled()) {
                 final int serverPort = Integer.parseInt(ServerSettings.getSetting(Constants.API_SERVER_PORT, "8930"));
 
-				TServerTransport serverTransport;
-
-				if(ServerSettings.isAPIServerTLSEnabled()) {
-					logger.info("Starting API Server with TLS Security..");
-
-					String keystore = ServerSettings.getApiServerKeystore();
-					String keystorePWD = ServerSettings.getApiServerKeystorePasswd();
-					TSSLTransportFactory.TSSLTransportParameters tlsParams =
-							new TSSLTransportFactory.TSSLTransportParameters();
-					tlsParams.setKeyStore(keystore, keystorePWD);
-					serverTransport = TSSLTransportFactory.getServerSocket(serverPort, 10000,
-							InetAddress.getByName(serverHost), tlsParams);
-				} else {
-					if(serverHost == null){
-						serverTransport = new TServerSocket(serverPort);
-					}else{
-						InetSocketAddress inetSocketAddress = new InetSocketAddress(serverHost, serverPort);
-						serverTransport = new TServerSocket(inetSocketAddress);
-					}
-				}
-
-				TThreadPoolServer.Args options = new TThreadPoolServer.Args(serverTransport);
-				options.minWorkerThreads = Integer.parseInt(ServerSettings.getSetting(Constants.API_SERVER_MIN_THREADS, "50"));
-				server = new TThreadPoolServer(options.processor(airavataAPIServer));
-				new Thread() {
-					public void run() {
+                TServerTransport serverTransport;
+
+                if (ServerSettings.isAPIServerTLSEnabled()) {
+                    logger.info("Starting API Server with TLS Security..");
+
+                    String keystore = ServerSettings.getApiServerKeystore();
+                    String keystorePWD = ServerSettings.getApiServerKeystorePasswd();
+                    TSSLTransportFactory.TSSLTransportParameters tlsParams =
+                            new TSSLTransportFactory.TSSLTransportParameters();
+                    tlsParams.setKeyStore(keystore, keystorePWD);
+                    serverTransport = TSSLTransportFactory.getServerSocket(
+                            serverPort, 10000, InetAddress.getByName(serverHost), tlsParams);
+                } else {
+                    if (serverHost == null) {
+                        serverTransport = new TServerSocket(serverPort);
+                    } else {
+                        InetSocketAddress inetSocketAddress = new InetSocketAddress(serverHost, serverPort);
+                        serverTransport = new TServerSocket(inetSocketAddress);
+                    }
+                }
+
+                TThreadPoolServer.Args options = new TThreadPoolServer.Args(serverTransport);
+                options.minWorkerThreads =
+                        Integer.parseInt(ServerSettings.getSetting(Constants.API_SERVER_MIN_THREADS, "50"));
+                server = new TThreadPoolServer(options.processor(airavataAPIServer));
+                new Thread() {
+                    public void run() {
                         server.serve();
-						setStatus(ServerStatus.STOPPED);
-						logger.info("Airavata API Server Stopped.");
-					}
-				}.start();
-				new Thread() {
-					public void run() {
-						while (!server.isServing()) {
-							try {
-								Thread.sleep(500);
-							} catch (InterruptedException e) {
-								break;
-							}
-						}
-						if (server.isServing()) {
-							setStatus(ServerStatus.STARTED);
-							logger.info("Starting Airavata API Server on Port " + serverPort);
-							logger.info("Listening to Airavata Clients ....");
-
-						}
-					}
-				}.start();
-				logger.info("Started API Server ....");
-			} else { /**********start thrift server over TLS******************/
+                        setStatus(ServerStatus.STOPPED);
+                        logger.info("Airavata API Server Stopped.");
+                    }
+                }.start();
+                new Thread() {
+                    public void run() {
+                        while (!server.isServing()) {
+                            try {
+                                Thread.sleep(500);
+                            } catch (InterruptedException e) {
+                                break;
+                            }
+                        }
+                        if (server.isServing()) {
+                            setStatus(ServerStatus.STARTED);
+                            logger.info("Starting Airavata API Server on Port " + serverPort);
+                            logger.info("Listening to Airavata Clients ....");
+                        }
+                    }
+                }.start();
+                logger.info("Started API Server ....");
+            } else {
+                /**********start thrift server over TLS******************/
                 TSSLTransportFactory.TSSLTransportParameters TLSParams =
                         new TSSLTransportFactory.TSSLTransportParameters();
                 TLSParams.setKeyStore(ServerSettings.getKeyStorePath(), ServerSettings.getKeyStorePassword());
                 TServerSocket TLSServerTransport = TSSLTransportFactory.getServerSocket(
-                        ServerSettings.getTLSServerPort(), ServerSettings.getTLSClientTimeout(),
-                        InetAddress.getByName(serverHost), TLSParams);
+                        ServerSettings.getTLSServerPort(),
+                        ServerSettings.getTLSClientTimeout(),
+                        InetAddress.getByName(serverHost),
+                        TLSParams);
                 TThreadPoolServer.Args settings = new TThreadPoolServer.Args(TLSServerTransport);
-                settings.minWorkerThreads = Integer.parseInt(ServerSettings.getSetting(
-                        Constants.API_SERVER_MIN_THREADS, "50"));
+                settings.minWorkerThreads =
+                        Integer.parseInt(ServerSettings.getSetting(Constants.API_SERVER_MIN_THREADS, "50"));
                 TLSServer = new TThreadPoolServer(settings.processor(airavataAPIServer));
                 new Thread() {
                     public void run() {
@@ -151,15 +154,15 @@ public class AiravataAPIServer implements IServer{
             }
 
             /*perform any security related initialization at the server startup, according to the underlying security
-             manager implementation being used.*/
-			AiravataSecurityManager securityManager = SecurityManagerFactory.getSecurityManager();
-			securityManager.initializeSecurityInfra();
+            manager implementation being used.*/
+            AiravataSecurityManager securityManager = SecurityManagerFactory.getSecurityManager();
+            securityManager.initializeSecurityInfra();
 
         } catch (TTransportException e) {
             logger.error(e.getMessage(), e);
             setStatus(ServerStatus.FAILED);
-			logger.error("Failed to start API server ...", e);
-			throw new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
+            logger.error("Failed to start API server ...", e);
+            throw new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
         } catch (ApplicationSettingsException e) {
             logger.error(e.getMessage(), e);
             throw new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
@@ -171,67 +174,68 @@ public class AiravataAPIServer implements IServer{
             throw new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
         }
     }
+
     public static void main(String[] args) {
-    	try {
-			AiravataAPIServer server = new AiravataAPIServer();
-			server.start();
-		} catch (Exception e) {
-			logger.error("Error while initializing Airavata API server", e);
-		}
+        try {
+            AiravataAPIServer server = new AiravataAPIServer();
+            server.start();
+        } catch (Exception e) {
+            logger.error("Error while initializing Airavata API server", e);
+        }
     }
 
-	@Override
-	public void start() throws Exception {
-		setStatus(ServerStatus.STARTING);
-        //Obtain a AiravataServerHandl
-		// er object from Guice which is wrapped with interception logic.
+    @Override
+    public void start() throws Exception {
+        setStatus(ServerStatus.STARTING);
+        // Obtain a AiravataServerHandl
+        // er object from Guice which is wrapped with interception logic.
         Injector injector = Guice.createInjector(new SecurityModule());
         Airavata.Processor<Airavata.Iface> airavataAPIServer =
                 new Airavata.Processor<Airavata.Iface>(injector.getInstance(AiravataServerHandler.class));
-    	startAiravataServer(airavataAPIServer);
-	}
-
-	@Override
-	public void stop() throws Exception {
-		if ((!ServerSettings.isTLSEnabled()) && server.isServing()){
-			setStatus(ServerStatus.STOPING);
-			server.stop();
-		}
-        //stop the Airavata API server hosted over TLS.
-        if ((ServerSettings.isTLSEnabled()) && TLSServer.isServing()){
+        startAiravataServer(airavataAPIServer);
+    }
+
+    @Override
+    public void stop() throws Exception {
+        if ((!ServerSettings.isTLSEnabled()) && server.isServing()) {
+            setStatus(ServerStatus.STOPING);
+            server.stop();
+        }
+        // stop the Airavata API server hosted over TLS.
+        if ((ServerSettings.isTLSEnabled()) && TLSServer.isServing()) {
             TLSServer.stop();
         }
-	}
-
-	@Override
-	public void restart() throws Exception {
-		stop();
-		start();
-	}
-
-	@Override
-	public void configure() throws Exception {
-		// TODO Auto-generated method stub
-
-	}
-
-	@Override
-	public ServerStatus getStatus() throws Exception {
-		return status;
-	}
-
-	private void setStatus(ServerStatus stat){
-		status=stat;
-		status.updateTime();
-	}
-
-	@Override
-	public String getName() {
-		return SERVER_NAME;
-	}
-
-	@Override
-	public String getVersion() {
-		return SERVER_VERSION;
-	}
+    }
+
+    @Override
+    public void restart() throws Exception {
+        stop();
+        start();
+    }
+
+    @Override
+    public void configure() throws Exception {
+        // TODO Auto-generated method stub
+
+    }
+
+    @Override
+    public ServerStatus getStatus() throws Exception {
+        return status;
+    }
+
+    private void setStatus(ServerStatus stat) {
+        status = stat;
+        status.updateTime();
+    }
+
+    @Override
+    public String getName() {
+        return SERVER_NAME;
+    }
+
+    @Override
+    public String getVersion() {
+        return SERVER_VERSION;
+    }
 }
diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
index f91e5f7b8a..4be740eebd 100644
--- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
+++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
@@ -1,33 +1,33 @@
 /**
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
 package org.apache.airavata.api.server.handler;
 
+import java.util.*;
+import java.util.function.BiFunction;
+import java.util.stream.Collectors;
 import org.apache.airavata.accountprovisioning.ConfigParam;
 import org.apache.airavata.accountprovisioning.SSHAccountManager;
 import org.apache.airavata.accountprovisioning.SSHAccountProvisionerFactory;
 import org.apache.airavata.accountprovisioning.SSHAccountProvisionerProvider;
 import org.apache.airavata.api.Airavata;
 import org.apache.airavata.api.airavata_apiConstants;
-import org.apache.airavata.model.appcatalog.parser.Parser;
-import org.apache.airavata.model.appcatalog.parser.ParsingTemplate;
-import org.apache.airavata.service.security.GatewayGroupsInitializer;
 import org.apache.airavata.common.exception.AiravataException;
 import org.apache.airavata.common.exception.ApplicationSettingsException;
 import org.apache.airavata.common.utils.AiravataUtils;
@@ -54,6 +54,8 @@ import org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResou
 import org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy;
 import org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference;
 import org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile;
+import org.apache.airavata.model.appcatalog.parser.Parser;
+import org.apache.airavata.model.appcatalog.parser.ParsingTemplate;
 import org.apache.airavata.model.appcatalog.storageresource.StorageResourceDescription;
 import org.apache.airavata.model.appcatalog.userresourceprofile.UserComputeResourcePreference;
 import org.apache.airavata.model.appcatalog.userresourceprofile.UserResourceProfile;
@@ -62,8 +64,8 @@ import org.apache.airavata.model.application.io.InputDataObjectType;
 import org.apache.airavata.model.application.io.OutputDataObjectType;
 import org.apache.airavata.model.commons.airavata_commonsConstants;
 import org.apache.airavata.model.credential.store.*;
-import org.apache.airavata.model.data.movement.DMType;
 import org.apache.airavata.model.data.movement.*;
+import org.apache.airavata.model.data.movement.DMType;
 import org.apache.airavata.model.data.replica.DataProductModel;
 import org.apache.airavata.model.data.replica.DataReplicaLocationModel;
 import org.apache.airavata.model.error.*;
@@ -85,14 +87,13 @@ import org.apache.airavata.model.status.JobStatus;
 import org.apache.airavata.model.status.ProcessState;
 import org.apache.airavata.model.status.ProcessStatus;
 import org.apache.airavata.model.status.QueueStatusModel;
-import org.apache.airavata.model.status.TaskState;
-import org.apache.airavata.model.status.TaskStatus;
 import org.apache.airavata.model.task.TaskTypes;
 import org.apache.airavata.model.workspace.Gateway;
 import org.apache.airavata.model.workspace.Notification;
 import org.apache.airavata.model.workspace.Project;
 import org.apache.airavata.registry.api.RegistryService;
 import org.apache.airavata.registry.api.exception.RegistryServiceException;
+import org.apache.airavata.service.security.GatewayGroupsInitializer;
 import org.apache.airavata.service.security.interceptor.SecurityCheck;
 import org.apache.airavata.sharing.registry.models.*;
 import org.apache.airavata.sharing.registry.service.cpi.SharingRegistryService;
@@ -101,10 +102,6 @@ import org.apache.thrift.TException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import java.util.*;
-import java.util.function.BiFunction;
-import java.util.stream.Collectors;
-
 public class AiravataServerHandler implements Airavata.Iface {
     private static final Logger logger = LoggerFactory.getLogger(AiravataServerHandler.class);
     private Publisher statusPublisher;
@@ -119,17 +116,18 @@ public class AiravataServerHandler implements Airavata.Iface {
             statusPublisher = MessagingFactory.getPublisher(Type.STATUS);
             experimentPublisher = MessagingFactory.getPublisher(Type.EXPERIMENT_LAUNCH);
 
-        sharingClientPool = new ThriftClientPool<>(
+            sharingClientPool = new ThriftClientPool<>(
                     tProtocol -> new SharingRegistryService.Client(tProtocol),
                     this.<SharingRegistryService.Client>createGenericObjectPoolConfig(),
-                    ServerSettings.getSharingRegistryHost(), Integer.parseInt(ServerSettings.getSharingRegistryPort()));
+                    ServerSettings.getSharingRegistryHost(),
+                    Integer.parseInt(ServerSettings.getSharingRegistryPort()));
             registryClientPool = new ThriftClientPool<>(
-                    tProtocol -> new RegistryService.Client(tProtocol), 
+                    tProtocol -> new RegistryService.Client(tProtocol),
                     this.<RegistryService.Client>createGenericObjectPoolConfig(),
                     ServerSettings.getRegistryServerHost(),
                     Integer.parseInt(ServerSettings.getRegistryServerPort()));
             csClientPool = new ThriftClientPool<>(
-                    tProtocol -> new CredentialStoreService.Client(tProtocol), 
+                    tProtocol -> new CredentialStoreService.Client(tProtocol),
                     this.<CredentialStoreService.Client>createGenericObjectPoolConfig(),
                     ServerSettings.getCredentialStoreServerHost(),
                     Integer.parseInt(ServerSettings.getCredentialStoreServerPort()));
@@ -170,11 +168,12 @@ public class AiravataServerHandler implements Airavata.Iface {
         RegistryService.Client registryClient = registryClientPool.getResource();
         try {
 
-            GatewayResourceProfile gatewayResourceProfile = registryClient.getGatewayResourceProfile(ServerSettings.getDefaultUserGateway());
+            GatewayResourceProfile gatewayResourceProfile =
+                    registryClient.getGatewayResourceProfile(ServerSettings.getDefaultUserGateway());
             if (gatewayResourceProfile != null && gatewayResourceProfile.getIdentityServerPwdCredToken() == null) {
 
-                logger.debug("Starting to add the password credential for default gateway : " +
-                        ServerSettings.getDefaultUserGateway());
+                logger.debug("Starting to add the password credential for default gateway : "
+                        + ServerSettings.getDefaultUserGateway());
 
                 PasswordCredential passwordCredential = new PasswordCredential();
                 passwordCredential.setPortalUserName(ServerSettings.getDefaultUser());
@@ -190,20 +189,23 @@ public class AiravataServerHandler implements Airavata.Iface {
                     token = csClient.addPasswordCredential(passwordCredential);
                     csClientPool.returnResource(csClient);
                 } catch (Exception ex) {
-                    logger.error("Failed to create the password credential for the default gateway : " +
-                            ServerSettings.getDefaultUserGateway(), ex);
+                    logger.error(
+                            "Failed to create the password credential for the default gateway : "
+                                    + ServerSettings.getDefaultUserGateway(),
+                            ex);
                     if (csClient != null) {
                         csClientPool.returnBrokenResource(csClient);
                     }
                 }
 
                 if (token != null) {
-                    logger.debug("Adding password credential token " + token +" to the default gateway : " + ServerSettings.getDefaultUserGateway());
+                    logger.debug("Adding password credential token " + token + " to the default gateway : "
+                            + ServerSettings.getDefaultUserGateway());
                     gatewayResourceProfile.setIdentityServerPwdCredToken(token);
                     gatewayResourceProfile.setIdentityServerTenant(ServerSettings.getDefaultUserGateway());
-                    registryClient.updateGatewayResourceProfile(ServerSettings.getDefaultUserGateway(), gatewayResourceProfile);
+                    registryClient.updateGatewayResourceProfile(
+                            ServerSettings.getDefaultUserGateway(), gatewayResourceProfile);
                 }
-
             }
 
             registryClientPool.returnResource(registryClient);
@@ -232,7 +234,7 @@ public class AiravataServerHandler implements Airavata.Iface {
                 user.setUserName(ServerSettings.getDefaultUser());
                 client.createUser(user);
 
-                //Creating Entity Types for each domain
+                // Creating Entity Types for each domain
                 EntityType entityType = new EntityType();
                 entityType.setEntityTypeId(domain.getDomainId() + ":PROJECT");
                 entityType.setDomainId(domain.getDomainId());
@@ -255,27 +257,27 @@ public class AiravataServerHandler implements Airavata.Iface {
                 client.createEntityType(entityType);
 
                 entityType = new EntityType();
-                entityType.setEntityTypeId(domain.getDomainId()+":"+ResourceType.APPLICATION_DEPLOYMENT.name());
+                entityType.setEntityTypeId(domain.getDomainId() + ":" + ResourceType.APPLICATION_DEPLOYMENT.name());
                 entityType.setDomainId(domain.getDomainId());
                 entityType.setName("APPLICATION-DEPLOYMENT");
                 entityType.setDescription("Application Deployment entity type");
                 client.createEntityType(entityType);
 
                 entityType = new EntityType();
-                entityType.setEntityTypeId(domain.getDomainId()+":"+ResourceType.GROUP_RESOURCE_PROFILE.name());
+                entityType.setEntityTypeId(domain.getDomainId() + ":" + ResourceType.GROUP_RESOURCE_PROFILE.name());
                 entityType.setDomainId(domain.getDomainId());
                 entityType.setName(ResourceType.GROUP_RESOURCE_PROFILE.name());
                 entityType.setDescription("Group Resource Profile entity type");
                 client.createEntityType(entityType);
 
                 entityType = new EntityType();
-                entityType.setEntityTypeId(domain.getDomainId()+":"+ResourceType.CREDENTIAL_TOKEN.name());
+                entityType.setEntityTypeId(domain.getDomainId() + ":" + ResourceType.CREDENTIAL_TOKEN.name());
                 entityType.setDomainId(domain.getDomainId());
                 entityType.setName(ResourceType.CREDENTIAL_TOKEN.name());
                 entityType.setDescription("Credential Store Token entity type");
                 client.createEntityType(entityType);
 
-                //Creating Permission Types for each domain
+                // Creating Permission Types for each domain
                 PermissionType permissionType = new PermissionType();
                 permissionType.setPermissionTypeId(domain.getDomainId() + ":READ");
                 permissionType.setDomainId(domain.getDomainId());
@@ -322,8 +324,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean isUserExists(AuthzToken authzToken, String gatewayId, String userName) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean isUserExists(AuthzToken authzToken, String gatewayId, String userName)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client client = registryClientPool.getResource();
         try {
             boolean isExists = client.isUserExists(gatewayId, userName);
@@ -342,8 +345,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public String addGateway(AuthzToken authzToken, Gateway gateway) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String addGateway(AuthzToken authzToken, Gateway gateway)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         RegistryService.Client registryClient = registryClientPool.getResource();
         try {
@@ -354,59 +358,59 @@ public class AiravataServerHandler implements Airavata.Iface {
             domain.setDescription("Domain entry for " + domain.getName());
             sharingClient.createDomain(domain);
 
-            //Creating Entity Types for each domain
+            // Creating Entity Types for each domain
             EntityType entityType = new EntityType();
-            entityType.setEntityTypeId(domain.getDomainId()+":PROJECT");
+            entityType.setEntityTypeId(domain.getDomainId() + ":PROJECT");
             entityType.setDomainId(domain.getDomainId());
             entityType.setName("PROJECT");
             entityType.setDescription("Project entity type");
             sharingClient.createEntityType(entityType);
 
             entityType = new EntityType();
-            entityType.setEntityTypeId(domain.getDomainId()+":EXPERIMENT");
+            entityType.setEntityTypeId(domain.getDomainId() + ":EXPERIMENT");
             entityType.setDomainId(domain.getDomainId());
             entityType.setName("EXPERIMENT");
             entityType.setDescription("Experiment entity type");
             sharingClient.createEntityType(entityType);
 
             entityType = new EntityType();
-            entityType.setEntityTypeId(domain.getDomainId()+":FILE");
+            entityType.setEntityTypeId(domain.getDomainId() + ":FILE");
             entityType.setDomainId(domain.getDomainId());
             entityType.setName("FILE");
             entityType.setDescription("File entity type");
             sharingClient.createEntityType(entityType);
 
             entityType = new EntityType();
-            entityType.setEntityTypeId(domain.getDomainId()+":"+ResourceType.APPLICATION_DEPLOYMENT.name());
+            entityType.setEntityTypeId(domain.getDomainId() + ":" + ResourceType.APPLICATION_DEPLOYMENT.name());
             entityType.setDomainId(domain.getDomainId());
             entityType.setName("APPLICATION-DEPLOYMENT");
             entityType.setDescription("Application Deployment entity type");
             sharingClient.createEntityType(entityType);
 
             entityType = new EntityType();
-            entityType.setEntityTypeId(domain.getDomainId()+":"+ResourceType.GROUP_RESOURCE_PROFILE.name());
+            entityType.setEntityTypeId(domain.getDomainId() + ":" + ResourceType.GROUP_RESOURCE_PROFILE.name());
             entityType.setDomainId(domain.getDomainId());
             entityType.setName(ResourceType.GROUP_RESOURCE_PROFILE.name());
             entityType.setDescription("Group Resource Profile entity type");
             sharingClient.createEntityType(entityType);
 
-            //Creating Permission Types for each domain
+            // Creating Permission Types for each domain
             PermissionType permissionType = new PermissionType();
-            permissionType.setPermissionTypeId(domain.getDomainId()+":READ");
+            permissionType.setPermissionTypeId(domain.getDomainId() + ":READ");
             permissionType.setDomainId(domain.getDomainId());
             permissionType.setName("READ");
             permissionType.setDescription("Read permission type");
             sharingClient.createPermissionType(permissionType);
 
             permissionType = new PermissionType();
-            permissionType.setPermissionTypeId(domain.getDomainId()+":WRITE");
+            permissionType.setPermissionTypeId(domain.getDomainId() + ":WRITE");
             permissionType.setDomainId(domain.getDomainId());
             permissionType.setName("WRITE");
             permissionType.setDescription("Write permission type");
             sharingClient.createPermissionType(permissionType);
 
             permissionType = new PermissionType();
-            permissionType.setPermissionTypeId(domain.getDomainId()+":MANAGE_SHARING");
+            permissionType.setPermissionTypeId(domain.getDomainId() + ":MANAGE_SHARING");
             permissionType.setDomainId(domain.getDomainId());
             permissionType.setName("MANAGE_SHARING");
             permissionType.setDescription("Sharing permission type");
@@ -438,8 +442,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public List<String> getAllUsersInGateway(AuthzToken authzToken, String gatewayId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<String> getAllUsersInGateway(AuthzToken authzToken, String gatewayId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             List<String> result = regClient.getAllUsersInGateway(gatewayId);
@@ -458,7 +463,8 @@ public class AiravataServerHandler implements Airavata.Iface {
     @Override
     @SecurityCheck
     public boolean updateGateway(AuthzToken authzToken, String gatewayId, Gateway updatedGateway)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
 
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
@@ -477,8 +483,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public Gateway getGateway(AuthzToken authzToken, String gatewayId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public Gateway getGateway(AuthzToken authzToken, String gatewayId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
 
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
@@ -498,8 +505,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean deleteGateway(AuthzToken authzToken, String gatewayId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean deleteGateway(AuthzToken authzToken, String gatewayId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.deleteGateway(gatewayId);
@@ -517,8 +525,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<Gateway> getAllGateways(AuthzToken authzToken) throws InvalidRequestException, AiravataClientException,
-            AiravataSystemException, AuthorizationException, TException {
+    public List<Gateway> getAllGateways(AuthzToken authzToken)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             logger.debug("Airavata searching for all gateways");
@@ -537,8 +546,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean isGatewayExist(AuthzToken authzToken, String gatewayId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean isGatewayExist(AuthzToken authzToken, String gatewayId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             logger.debug("Airavata verifying if the gateway with " + gatewayId + "exits");
@@ -564,8 +574,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public String createNotification(AuthzToken authzToken, Notification notification) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String createNotification(AuthzToken authzToken, Notification notification)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             String result = regClient.createNotification(notification);
@@ -583,8 +594,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean updateNotification(AuthzToken authzToken, Notification notification) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateNotification(AuthzToken authzToken, Notification notification)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.updateNotification(notification);
@@ -602,8 +614,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean deleteNotification(AuthzToken authzToken, String gatewayId, String notificationId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean deleteNotification(AuthzToken authzToken, String gatewayId, String notificationId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.deleteNotification(gatewayId, notificationId);
@@ -621,8 +634,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     // No security check
     @Override
-    public Notification getNotification(AuthzToken authzToken, String gatewayId, String notificationId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public Notification getNotification(AuthzToken authzToken, String gatewayId, String notificationId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             Notification result = regClient.getNotification(gatewayId, notificationId);
@@ -640,8 +654,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     // No security check
     @Override
-    public List<Notification> getAllNotifications(AuthzToken authzToken, String gatewayId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<Notification> getAllNotifications(AuthzToken authzToken, String gatewayId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             List<Notification> result = regClient.getAllNotifications(gatewayId);
@@ -659,7 +674,8 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public String generateAndRegisterSSHKeys(AuthzToken authzToken, String description) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
+    public String generateAndRegisterSSHKeys(AuthzToken authzToken, String description)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
         String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
         String userName = authzToken.getClaimsMap().get(Constants.USER_NAME);
         CredentialStoreService.Client csClient = csClientPool.getResource();
@@ -682,7 +698,8 @@ public class AiravataServerHandler implements Airavata.Iface {
                 sharingClient.createEntity(entity);
             } catch (Exception ex) {
                 logger.error(ex.getMessage(), ex);
-                logger.error("Rolling back ssh key creation for user " + userName + " and description [" + description + "]");
+                logger.error("Rolling back ssh key creation for user " + userName + " and description [" + description
+                        + "]");
                 csClient.deleteSSHCredential(key, gatewayId);
                 AiravataSystemException ase = new AiravataSystemException();
                 ase.setMessage("Failed to create sharing registry record");
@@ -693,7 +710,7 @@ public class AiravataServerHandler implements Airavata.Iface {
             sharingClientPool.returnResource(sharingClient);
             registryClientPool.returnResource(regClient);
             return key;
-        }catch (Exception e){
+        } catch (Exception e) {
             logger.error("Error occurred while registering SSH Credential", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
@@ -716,7 +733,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public String registerPwdCredential(AuthzToken authzToken, String loginUserName, String password, String description) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
+    public String registerPwdCredential(
+            AuthzToken authzToken, String loginUserName, String password, String description)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
         String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
         String userName = authzToken.getClaimsMap().get(Constants.USER_NAME);
         CredentialStoreService.Client csClient = csClientPool.getResource();
@@ -741,18 +760,20 @@ public class AiravataServerHandler implements Airavata.Iface {
                 sharingClient.createEntity(entity);
             } catch (Exception ex) {
                 logger.error(ex.getMessage(), ex);
-                logger.error("Rolling back password registration for user " + userName + " and description [" + description + "]");
+                logger.error("Rolling back password registration for user " + userName + " and description ["
+                        + description + "]");
                 csClient.deletePWDCredential(key, gatewayId);
                 AiravataSystemException ase = new AiravataSystemException();
                 ase.setMessage("Failed to create sharing registry record");
                 throw ase;
             }
-            logger.debug("Airavata generated PWD credential for gateway : " + gatewayId + " and for user : " + loginUserName);
+            logger.debug("Airavata generated PWD credential for gateway : " + gatewayId + " and for user : "
+                    + loginUserName);
             csClientPool.returnResource(csClient);
             sharingClientPool.returnResource(sharingClient);
             registryClientPool.returnResource(regClient);
             return key;
-        }catch (Exception e){
+        } catch (Exception e) {
             logger.error("Error occurred while registering PWD Credential", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
@@ -764,7 +785,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public CredentialSummary getCredentialSummary(AuthzToken authzToken, String tokenId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public CredentialSummary getCredentialSummary(AuthzToken authzToken, String tokenId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         CredentialStoreService.Client csClient = csClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
@@ -775,7 +798,7 @@ public class AiravataServerHandler implements Airavata.Iface {
             CredentialSummary credentialSummary = csClient.getCredentialSummary(tokenId, gatewayId);
             csClientPool.returnResource(csClient);
             sharingClientPool.returnResource(sharingClient);
-            logger.debug("Airavata retrived the credential summary for token " + tokenId + "GatewayId: "+ gatewayId);
+            logger.debug("Airavata retrived the credential summary for token " + tokenId + "GatewayId: " + gatewayId);
             return credentialSummary;
         } catch (AuthorizationException ae) {
             String userName = authzToken.getClaimsMap().get(Constants.USER_NAME);
@@ -784,10 +807,10 @@ public class AiravataServerHandler implements Airavata.Iface {
             sharingClientPool.returnResource(sharingClient);
             throw ae;
         } catch (Exception e) {
-            String msg = "Error retrieving credential summary for token " + tokenId + ". GatewayId: "+ gatewayId;
+            String msg = "Error retrieving credential summary for token " + tokenId + ". GatewayId: " + gatewayId;
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             csClientPool.returnBrokenResource(csClient);
             sharingClientPool.returnBrokenResource(sharingClient);
             throw exception;
@@ -796,7 +819,8 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<CredentialSummary> getAllCredentialSummaries(AuthzToken authzToken, SummaryType type) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
+    public List<CredentialSummary> getAllCredentialSummaries(AuthzToken authzToken, SummaryType type)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
         CredentialStoreService.Client csClient = csClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
@@ -808,20 +832,22 @@ public class AiravataServerHandler implements Airavata.Iface {
             searchCriteria.setSearchCondition(SearchCondition.EQUAL);
             searchCriteria.setValue(gatewayId + ":" + ResourceType.CREDENTIAL_TOKEN.name());
             filters.add(searchCriteria);
-            List<String> accessibleTokenIds = sharingClient.searchEntities(gatewayId, userName + "@" + gatewayId, filters, 0, -1)
-                    .stream()
-                    .map(p -> p.getEntityId())
-                    .collect(Collectors.toList());
-            List<CredentialSummary> credentialSummaries = csClient.getAllCredentialSummaries(type, accessibleTokenIds, gatewayId);
+            List<String> accessibleTokenIds =
+                    sharingClient.searchEntities(gatewayId, userName + "@" + gatewayId, filters, 0, -1).stream()
+                            .map(p -> p.getEntityId())
+                            .collect(Collectors.toList());
+            List<CredentialSummary> credentialSummaries =
+                    csClient.getAllCredentialSummaries(type, accessibleTokenIds, gatewayId);
             csClientPool.returnResource(csClient);
             sharingClientPool.returnResource(sharingClient);
-            logger.debug("Airavata successfully retrived credential summaries of type " + type + " GatewayId: " + gatewayId);
+            logger.debug(
+                    "Airavata successfully retrived credential summaries of type " + type + " GatewayId: " + gatewayId);
             return credentialSummaries;
         } catch (Exception e) {
-            String msg = "Error retrieving credential summaries of type " + type + ". GatewayId: "+ gatewayId;
+            String msg = "Error retrieving credential summaries of type " + type + ". GatewayId: " + gatewayId;
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             csClientPool.returnBrokenResource(csClient);
             sharingClientPool.returnBrokenResource(sharingClient);
             throw exception;
@@ -830,26 +856,30 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean deleteSSHPubKey(AuthzToken authzToken, String airavataCredStoreToken) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
+    public boolean deleteSSHPubKey(AuthzToken authzToken, String airavataCredStoreToken)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
         CredentialStoreService.Client csClient = csClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
         try {
-            if (!userHasAccessInternal(sharingClient, authzToken, airavataCredStoreToken, ResourcePermissionType.WRITE)) {
+            if (!userHasAccessInternal(
+                    sharingClient, authzToken, airavataCredStoreToken, ResourcePermissionType.WRITE)) {
                 throw new AuthorizationException("User does not have permission to delete this resource.");
             }
-            logger.debug("Airavata deleted SSH pub key for gateway Id : " + gatewayId + " and with token id : " + airavataCredStoreToken);
+            logger.debug("Airavata deleted SSH pub key for gateway Id : " + gatewayId + " and with token id : "
+                    + airavataCredStoreToken);
             boolean result = csClient.deleteSSHCredential(airavataCredStoreToken, gatewayId);
             csClientPool.returnResource(csClient);
             sharingClientPool.returnResource(sharingClient);
             return result;
         } catch (AuthorizationException ae) {
             String userName = authzToken.getClaimsMap().get(Constants.USER_NAME);
-            logger.info("User " + userName + " not allowed to delete (no WRITE permission) credential store token " + airavataCredStoreToken);
+            logger.info("User " + userName + " not allowed to delete (no WRITE permission) credential store token "
+                    + airavataCredStoreToken);
             csClientPool.returnResource(csClient);
             sharingClientPool.returnResource(sharingClient);
             throw ae;
-        } catch (Exception e){
+        } catch (Exception e) {
             logger.error("Error occurred while deleting SSH credential", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
@@ -862,26 +892,30 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean deletePWDCredential(AuthzToken authzToken, String airavataCredStoreToken) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
+    public boolean deletePWDCredential(AuthzToken authzToken, String airavataCredStoreToken)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
         CredentialStoreService.Client csClient = csClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
         try {
-            if (!userHasAccessInternal(sharingClient, authzToken, airavataCredStoreToken, ResourcePermissionType.WRITE)) {
+            if (!userHasAccessInternal(
+                    sharingClient, authzToken, airavataCredStoreToken, ResourcePermissionType.WRITE)) {
                 throw new AuthorizationException("User does not have permission to delete this resource.");
             }
-            logger.debug("Airavata deleted PWD credential for gateway Id : " + gatewayId + " and with token id : " + airavataCredStoreToken);
+            logger.debug("Airavata deleted PWD credential for gateway Id : " + gatewayId + " and with token id : "
+                    + airavataCredStoreToken);
             boolean result = csClient.deletePWDCredential(airavataCredStoreToken, gatewayId);
             csClientPool.returnResource(csClient);
             sharingClientPool.returnResource(sharingClient);
             return result;
         } catch (AuthorizationException ae) {
             String userName = authzToken.getClaimsMap().get(Constants.USER_NAME);
-            logger.info("User " + userName + " not allowed to delete (no WRITE permission) credential store token " + airavataCredStoreToken);
+            logger.info("User " + userName + " not allowed to delete (no WRITE permission) credential store token "
+                    + airavataCredStoreToken);
             csClientPool.returnResource(csClient);
             sharingClientPool.returnResource(sharingClient);
             throw ae;
-        }catch (Exception e){
+        } catch (Exception e) {
             logger.error("Error occurred while deleting PWD credential", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
@@ -899,14 +933,15 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public String createProject(AuthzToken authzToken, String gatewayId, Project project) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String createProject(AuthzToken authzToken, String gatewayId, Project project)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         // TODO: verify that gatewayId and project.gatewayId match authzToken
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
             String projectId = regClient.createProject(gatewayId, project);
-            if(ServerSettings.isEnableSharing()){
+            if (ServerSettings.isEnableSharing()) {
                 try {
                     Entity entity = new Entity();
                     entity.setEntityId(projectId);
@@ -943,33 +978,41 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public void updateProject(AuthzToken authzToken, String projectId, Project updatedProject) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, ProjectNotFoundException, AuthorizationException, TException {
+    public void updateProject(AuthzToken authzToken, String projectId, Project updatedProject)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, ProjectNotFoundException,
+                    AuthorizationException, TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
             Project existingProject = regClient.getProject(projectId);
-            if(ServerSettings.isEnableSharing() && !authzToken.getClaimsMap().get(org.apache.airavata.common.utils.Constants.USER_NAME).equals(existingProject.getOwner())
-                    || !authzToken.getClaimsMap().get(org.apache.airavata.common.utils.Constants.GATEWAY_ID).equals(existingProject.getGatewayId())){
+            if (ServerSettings.isEnableSharing()
+                            && !authzToken
+                                    .getClaimsMap()
+                                    .get(org.apache.airavata.common.utils.Constants.USER_NAME)
+                                    .equals(existingProject.getOwner())
+                    || !authzToken
+                            .getClaimsMap()
+                            .get(org.apache.airavata.common.utils.Constants.GATEWAY_ID)
+                            .equals(existingProject.getGatewayId())) {
                 try {
                     String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
                     String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-                    if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                            projectId, gatewayId + ":WRITE")){
+                    if (!sharingClient.userHasAccess(
+                            gatewayId, userId + "@" + gatewayId, projectId, gatewayId + ":WRITE")) {
                         throw new AuthorizationException("User does not have permission to access this resource");
                     }
                 } catch (Exception e) {
                     throw new AuthorizationException("User does not have permission to access this resource");
                 }
             }
-            if(!updatedProject.getOwner().equals(existingProject.getOwner())){
+            if (!updatedProject.getOwner().equals(existingProject.getOwner())) {
                 throw new InvalidRequestException("Owner of a project cannot be changed");
             }
-            if(!updatedProject.getGatewayId().equals(existingProject.getGatewayId())){
+            if (!updatedProject.getGatewayId().equals(existingProject.getGatewayId())) {
                 throw new InvalidRequestException("Gateway ID of a project cannot be changed");
             }
             regClient.updateProject(projectId, updatedProject);
-            logger.debug("Airavata updated project with project Id : " + projectId );
+            logger.debug("Airavata updated project with project Id : " + projectId);
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
         } catch (Exception e) {
@@ -985,19 +1028,27 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean deleteProject(AuthzToken authzToken, String projectId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, ProjectNotFoundException, AuthorizationException, TException {
+    public boolean deleteProject(AuthzToken authzToken, String projectId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, ProjectNotFoundException,
+                    AuthorizationException, TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
             Project existingProject = regClient.getProject(projectId);
-            if(ServerSettings.isEnableSharing() && !authzToken.getClaimsMap().get(org.apache.airavata.common.utils.Constants.USER_NAME).equals(existingProject.getOwner())
-                    || !authzToken.getClaimsMap().get(org.apache.airavata.common.utils.Constants.GATEWAY_ID).equals(existingProject.getGatewayId())){
+            if (ServerSettings.isEnableSharing()
+                            && !authzToken
+                                    .getClaimsMap()
+                                    .get(org.apache.airavata.common.utils.Constants.USER_NAME)
+                                    .equals(existingProject.getOwner())
+                    || !authzToken
+                            .getClaimsMap()
+                            .get(org.apache.airavata.common.utils.Constants.GATEWAY_ID)
+                            .equals(existingProject.getGatewayId())) {
                 try {
                     String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
                     String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-                    if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                            projectId, gatewayId + ":WRITE")){
+                    if (!sharingClient.userHasAccess(
+                            gatewayId, userId + "@" + gatewayId, projectId, gatewayId + ":WRITE")) {
                         throw new AuthorizationException("User does not have permission to access this resource");
                     }
                 } catch (Exception e) {
@@ -1005,7 +1056,7 @@ public class AiravataServerHandler implements Airavata.Iface {
                 }
             }
             boolean ret = regClient.deleteProject(projectId);
-            logger.debug("Airavata deleted project with project Id : " + projectId );
+            logger.debug("Airavata deleted project with project Id : " + projectId);
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
             return ret;
@@ -1019,9 +1070,9 @@ public class AiravataServerHandler implements Airavata.Iface {
         }
     }
 
-    private boolean validateString(String name){
+    private boolean validateString(String name) {
         boolean valid = true;
-        if (name == null || name.equals("") || name.trim().length() == 0){
+        if (name == null || name.equals("") || name.trim().length() == 0) {
             valid = false;
         }
         return valid;
@@ -1034,23 +1085,30 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public Project getProject(AuthzToken authzToken, String projectId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, ProjectNotFoundException, AuthorizationException, TException {
+    public Project getProject(AuthzToken authzToken, String projectId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, ProjectNotFoundException,
+                    AuthorizationException, TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
             Project project = regClient.getProject(projectId);
-            if(authzToken.getClaimsMap().get(org.apache.airavata.common.utils.Constants.USER_NAME).equals(project.getOwner())
-                    && authzToken.getClaimsMap().get(org.apache.airavata.common.utils.Constants.GATEWAY_ID).equals(project.getGatewayId())){
+            if (authzToken
+                            .getClaimsMap()
+                            .get(org.apache.airavata.common.utils.Constants.USER_NAME)
+                            .equals(project.getOwner())
+                    && authzToken
+                            .getClaimsMap()
+                            .get(org.apache.airavata.common.utils.Constants.GATEWAY_ID)
+                            .equals(project.getGatewayId())) {
                 registryClientPool.returnResource(regClient);
                 sharingClientPool.returnResource(sharingClient);
                 return project;
-            }else if (ServerSettings.isEnableSharing()){
+            } else if (ServerSettings.isEnableSharing()) {
                 try {
                     String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
                     String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-                    if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                            projectId, gatewayId + ":READ")){
+                    if (!sharingClient.userHasAccess(
+                            gatewayId, userId + "@" + gatewayId, projectId, gatewayId + ":READ")) {
                         throw new AuthorizationException("User does not have permission to access this resource");
                     }
                     registryClientPool.returnResource(regClient);
@@ -1074,7 +1132,6 @@ public class AiravataServerHandler implements Airavata.Iface {
         }
     }
 
-
     /**
      * Get all Project by user with pagination. Results will be ordered based
      * on creation time DESC
@@ -1090,13 +1147,14 @@ public class AiravataServerHandler implements Airavata.Iface {
      **/
     @Override
     @SecurityCheck
-    public List<Project> getUserProjects(AuthzToken authzToken, String gatewayId, String userName,
-                                         int limit, int offset)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<Project> getUserProjects(
+            AuthzToken authzToken, String gatewayId, String userName, int limit, int offset)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
-            if (ServerSettings.isEnableSharing()){
+            if (ServerSettings.isEnableSharing()) {
                 // user projects + user accessible projects
                 List<String> accessibleProjectIds = new ArrayList<>();
                 List<SearchCriteria> filters = new ArrayList<>();
@@ -1105,19 +1163,26 @@ public class AiravataServerHandler implements Airavata.Iface {
                 searchCriteria.setSearchCondition(SearchCondition.EQUAL);
                 searchCriteria.setValue(gatewayId + ":PROJECT");
                 filters.add(searchCriteria);
-                sharingClient.searchEntities(authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
-                        userName + "@" + gatewayId, filters, 0, -1).stream().forEach(p -> accessibleProjectIds
-                        .add(p.getEntityId()));
+                sharingClient
+                        .searchEntities(
+                                authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
+                                userName + "@" + gatewayId,
+                                filters,
+                                0,
+                                -1)
+                        .stream()
+                        .forEach(p -> accessibleProjectIds.add(p.getEntityId()));
                 List<Project> result;
                 if (accessibleProjectIds.isEmpty()) {
                     result = Collections.emptyList();
                 } else {
-                    result = regClient.searchProjects(gatewayId, userName, accessibleProjectIds, new HashMap<>(), limit, offset);
+                    result = regClient.searchProjects(
+                            gatewayId, userName, accessibleProjectIds, new HashMap<>(), limit, offset);
                 }
                 registryClientPool.returnResource(regClient);
                 sharingClientPool.returnResource(sharingClient);
                 return result;
-            }else{
+            } else {
                 List<Project> result = regClient.getUserProjects(gatewayId, userName, limit, offset);
                 registryClientPool.returnResource(regClient);
                 sharingClientPool.returnResource(sharingClient);
@@ -1159,12 +1224,19 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public List<Project> searchProjects(AuthzToken authzToken, String gatewayId, String userName, Map<ProjectSearchFields,
-            String> filters, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<Project> searchProjects(
+            AuthzToken authzToken,
+            String gatewayId,
+            String userName,
+            Map<ProjectSearchFields, String> filters,
+            int limit,
+            int offset)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
-            List<String> accessibleProjIds  = new ArrayList<>();
+            List<String> accessibleProjIds = new ArrayList<>();
 
             List<Project> result;
             if (ServerSettings.isEnableSharing()) {
@@ -1174,8 +1246,15 @@ public class AiravataServerHandler implements Airavata.Iface {
                 searchCriteria.setSearchCondition(SearchCondition.EQUAL);
                 searchCriteria.setValue(gatewayId + ":PROJECT");
                 sharingFilters.add(searchCriteria);
-                sharingClient.searchEntities(authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
-                        userName + "@" + gatewayId, sharingFilters, 0, Integer.MAX_VALUE).stream().forEach(e -> accessibleProjIds.add(e.getEntityId()));
+                sharingClient
+                        .searchEntities(
+                                authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
+                                userName + "@" + gatewayId,
+                                sharingFilters,
+                                0,
+                                Integer.MAX_VALUE)
+                        .stream()
+                        .forEach(e -> accessibleProjIds.add(e.getEntityId()));
                 if (accessibleProjIds.isEmpty()) {
                     result = Collections.emptyList();
                 } else {
@@ -1187,7 +1266,7 @@ public class AiravataServerHandler implements Airavata.Iface {
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
             return result;
-        }catch (Exception e) {
+        } catch (Exception e) {
             logger.error("Error while retrieving projects", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
@@ -1198,7 +1277,6 @@ public class AiravataServerHandler implements Airavata.Iface {
         }
     }
 
-
     /**
      * Search Experiments by using multiple filter criteria with pagination. Results will be sorted
      * based on creation time DESC
@@ -1216,9 +1294,15 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public List<ExperimentSummaryModel> searchExperiments(AuthzToken authzToken, String gatewayId, String userName, Map<ExperimentSearchFields,
-            String> filters, int limit, int offset)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<ExperimentSummaryModel> searchExperiments(
+            AuthzToken authzToken,
+            String gatewayId,
+            String userName,
+            Map<ExperimentSearchFields, String> filters,
+            int limit,
+            int offset)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
@@ -1290,18 +1374,25 @@ public class AiravataServerHandler implements Airavata.Iface {
                 searchOffset = offset;
                 searchLimit = limit;
             }
-            sharingClient.searchEntities(authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
-                    userName + "@" + gatewayId, sharingFilters, searchOffset, searchLimit).forEach(e -> accessibleExpIds.add(e.getEntityId()));
+            sharingClient
+                    .searchEntities(
+                            authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
+                            userName + "@" + gatewayId,
+                            sharingFilters,
+                            searchOffset,
+                            searchLimit)
+                    .forEach(e -> accessibleExpIds.add(e.getEntityId()));
             int finalOffset = offset;
             // If no more filtering to be done (either empty or all done through sharing API), set the offset to 0
             if (filteredInSharing) {
                 finalOffset = 0;
             }
-            List<ExperimentSummaryModel> result = regClient.searchExperiments(gatewayId, userName, accessibleExpIds, filtersCopy, limit, finalOffset);
+            List<ExperimentSummaryModel> result =
+                    regClient.searchExperiments(gatewayId, userName, accessibleExpIds, filtersCopy, limit, finalOffset);
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
             return result;
-        }catch (Exception e) {
+        } catch (Exception e) {
             logger.error("Error while retrieving experiments", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
@@ -1327,9 +1418,18 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public ExperimentStatistics getExperimentStatistics(AuthzToken authzToken, String gatewayId, long fromTime, long toTime,
-                                                        String userName, String applicationName, String resourceHostName, int limit, int offset)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public ExperimentStatistics getExperimentStatistics(
+            AuthzToken authzToken,
+            String gatewayId,
+            long fromTime,
+            long toTime,
+            String userName,
+            String applicationName,
+            String resourceHostName,
+            int limit,
+            int offset)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         // SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
@@ -1354,14 +1454,24 @@ public class AiravataServerHandler implements Airavata.Iface {
             // sharingFilters.add(toCreatedTimeCriteria);
             // String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
             // sharingClient.searchEntities(authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
-            //         userId + "@" + gatewayId, sharingFilters, 0, Integer.MAX_VALUE).forEach(e -> accessibleExpIds.add(e.getEntityId()));
+            //         userId + "@" + gatewayId, sharingFilters, 0, Integer.MAX_VALUE).forEach(e ->
+            // accessibleExpIds.add(e.getEntityId()));
             List<String> accessibleExpIds = null;
 
-            ExperimentStatistics result = regClient.getExperimentStatistics(gatewayId, fromTime, toTime, userName, applicationName, resourceHostName, accessibleExpIds, limit, offset);
+            ExperimentStatistics result = regClient.getExperimentStatistics(
+                    gatewayId,
+                    fromTime,
+                    toTime,
+                    userName,
+                    applicationName,
+                    resourceHostName,
+                    accessibleExpIds,
+                    limit,
+                    offset);
             registryClientPool.returnResource(regClient);
             // sharingClientPool.returnResource(sharingClient);
             return result;
-        }catch (Exception e) {
+        } catch (Exception e) {
             logger.error("Error while retrieving experiments", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
@@ -1387,19 +1497,26 @@ public class AiravataServerHandler implements Airavata.Iface {
     @SecurityCheck
     public List<ExperimentModel> getExperimentsInProject(AuthzToken authzToken, String projectId, int limit, int offset)
             throws InvalidRequestException, AiravataClientException, AiravataSystemException, ProjectNotFoundException,
-            AuthorizationException, TException {
+                    AuthorizationException, TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
             Project project = regClient.getProject(projectId);
 
             String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
-            if(ServerSettings.isEnableSharing() && !authzToken.getClaimsMap().get(org.apache.airavata.common.utils.Constants.USER_NAME).equals(project.getOwner())
-                    || !authzToken.getClaimsMap().get(org.apache.airavata.common.utils.Constants.GATEWAY_ID).equals(project.getGatewayId())){
+            if (ServerSettings.isEnableSharing()
+                            && !authzToken
+                                    .getClaimsMap()
+                                    .get(org.apache.airavata.common.utils.Constants.USER_NAME)
+                                    .equals(project.getOwner())
+                    || !authzToken
+                            .getClaimsMap()
+                            .get(org.apache.airavata.common.utils.Constants.GATEWAY_ID)
+                            .equals(project.getGatewayId())) {
                 try {
                     String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-                    if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                            projectId, gatewayId + ":READ")){
+                    if (!sharingClient.userHasAccess(
+                            gatewayId, userId + "@" + gatewayId, projectId, gatewayId + ":READ")) {
                         throw new AuthorizationException("User does not have permission to access this resource");
                     }
                 } catch (Exception e) {
@@ -1436,9 +1553,10 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public List<ExperimentModel> getUserExperiments(AuthzToken authzToken, String gatewayId, String userName, int limit,
-                                                    int offset) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<ExperimentModel> getUserExperiments(
+            AuthzToken authzToken, String gatewayId, String userName, int limit, int offset)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
@@ -1481,8 +1599,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public String createExperiment(AuthzToken authzToken, String gatewayId, ExperimentModel experiment) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String createExperiment(AuthzToken authzToken, String gatewayId, ExperimentModel experiment)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         // TODO: verify that gatewayId and experiment.gatewayId match authzToken
         logger.info("Api server accepted experiment creation with name {}", experiment.getExperimentName());
         RegistryService.Client regClient = registryClientPool.getResource();
@@ -1490,7 +1609,7 @@ public class AiravataServerHandler implements Airavata.Iface {
         try {
             String experimentId = regClient.createExperiment(gatewayId, experiment);
 
-            if(ServerSettings.isEnableSharing()) {
+            if (ServerSettings.isEnableSharing()) {
                 try {
                     Entity entity = new Entity();
                     entity.setEntityId(experimentId);
@@ -1514,17 +1633,21 @@ public class AiravataServerHandler implements Airavata.Iface {
                 }
             }
 
-            ExperimentStatusChangeEvent event = new ExperimentStatusChangeEvent(ExperimentState.CREATED,
-                    experimentId,
-                    gatewayId);
+            ExperimentStatusChangeEvent event =
+                    new ExperimentStatusChangeEvent(ExperimentState.CREATED, experimentId, gatewayId);
             String messageId = AiravataUtils.getId("EXPERIMENT");
             MessageContext messageContext = new MessageContext(event, MessageType.EXPERIMENT, messageId, gatewayId);
             messageContext.setUpdatedTime(AiravataUtils.getCurrentTimestamp());
-            if(statusPublisher !=null) {
+            if (statusPublisher != null) {
                 statusPublisher.publish(messageContext);
             }
-            //logger.debug(experimentId, "Created new experiment with experiment name {}", experiment.getExperimentName());
-            logger.info(experimentId, "Created new experiment with experiment name {} and id ", experiment.getExperimentName(), experimentId);
+            // logger.debug(experimentId, "Created new experiment with experiment name {}",
+            // experiment.getExperimentName());
+            logger.info(
+                    experimentId,
+                    "Created new experiment with experiment name {} and id ",
+                    experiment.getExperimentName(),
+                    experimentId);
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
             return experimentId;
@@ -1552,19 +1675,28 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean deleteExperiment(AuthzToken authzToken, String experimentId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean deleteExperiment(AuthzToken authzToken, String experimentId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
             ExperimentModel experimentModel = regClient.getExperiment(experimentId);
 
-            if(ServerSettings.isEnableSharing() && !authzToken.getClaimsMap().get(org.apache.airavata.common.utils.Constants.USER_NAME).equals(experimentModel.getUserName())
-                    || !authzToken.getClaimsMap().get(org.apache.airavata.common.utils.Constants.GATEWAY_ID).equals(experimentModel.getGatewayId())){
+            if (ServerSettings.isEnableSharing()
+                            && !authzToken
+                                    .getClaimsMap()
+                                    .get(org.apache.airavata.common.utils.Constants.USER_NAME)
+                                    .equals(experimentModel.getUserName())
+                    || !authzToken
+                            .getClaimsMap()
+                            .get(org.apache.airavata.common.utils.Constants.GATEWAY_ID)
+                            .equals(experimentModel.getGatewayId())) {
                 try {
                     String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
                     String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-                    if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                            experimentId, gatewayId + ":WRITE")){
+                    if (!sharingClient.userHasAccess(
+                            gatewayId, userId + "@" + gatewayId, experimentId, gatewayId + ":WRITE")) {
                         throw new AuthorizationException("User does not have permission to access this resource");
                     }
                 } catch (Exception e) {
@@ -1572,9 +1704,10 @@ public class AiravataServerHandler implements Airavata.Iface {
                 }
             }
 
-            if(!(experimentModel.getExperimentStatus().get(0).getState() == ExperimentState.CREATED)){
+            if (!(experimentModel.getExperimentStatus().get(0).getState() == ExperimentState.CREATED)) {
                 logger.error("Error while deleting the experiment");
-                throw new RegistryServiceException("Experiment is not in CREATED state. Hence cannot deleted. ID:"+ experimentId);
+                throw new RegistryServiceException(
+                        "Experiment is not in CREATED state. Hence cannot deleted. ID:" + experimentId);
             }
             boolean result = regClient.deleteExperiment(experimentId);
             registryClientPool.returnResource(regClient);
@@ -1615,24 +1748,31 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public ExperimentModel getExperiment(AuthzToken authzToken, String airavataExperimentId) throws InvalidRequestException,
-            ExperimentNotFoundException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public ExperimentModel getExperiment(AuthzToken authzToken, String airavataExperimentId)
+            throws InvalidRequestException, ExperimentNotFoundException, AiravataClientException,
+                    AiravataSystemException, AuthorizationException, TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         ExperimentModel experimentModel = null;
         try {
             experimentModel = regClient.getExperiment(airavataExperimentId);
-            if(authzToken.getClaimsMap().get(org.apache.airavata.common.utils.Constants.USER_NAME).equals(experimentModel.getUserName())
-                    && authzToken.getClaimsMap().get(org.apache.airavata.common.utils.Constants.GATEWAY_ID).equals(experimentModel.getGatewayId())){
+            if (authzToken
+                            .getClaimsMap()
+                            .get(org.apache.airavata.common.utils.Constants.USER_NAME)
+                            .equals(experimentModel.getUserName())
+                    && authzToken
+                            .getClaimsMap()
+                            .get(org.apache.airavata.common.utils.Constants.GATEWAY_ID)
+                            .equals(experimentModel.getGatewayId())) {
                 registryClientPool.returnResource(regClient);
                 sharingClientPool.returnResource(sharingClient);
                 return experimentModel;
-            }else if(ServerSettings.isEnableSharing()){
+            } else if (ServerSettings.isEnableSharing()) {
                 try {
                     String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
                     String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-                    if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                            airavataExperimentId, gatewayId + ":READ")){
+                    if (!sharingClient.userHasAccess(
+                            gatewayId, userId + "@" + gatewayId, airavataExperimentId, gatewayId + ":READ")) {
                         throw new AuthorizationException("User does not have permission to access this resource");
                     }
                     registryClientPool.returnResource(regClient);
@@ -1641,7 +1781,7 @@ public class AiravataServerHandler implements Airavata.Iface {
                 } catch (Exception e) {
                     throw new AuthorizationException("User does not have permission to access this resource");
                 }
-            }else{
+            } else {
                 registryClientPool.returnResource(regClient);
                 sharingClientPool.returnResource(sharingClient);
                 return null;
@@ -1665,14 +1805,15 @@ public class AiravataServerHandler implements Airavata.Iface {
     @Override
     @SecurityCheck
     public ExperimentModel getExperimentByAdmin(AuthzToken authzToken, String airavataExperimentId)
-            throws InvalidRequestException, ExperimentNotFoundException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+            throws InvalidRequestException, ExperimentNotFoundException, AiravataClientException,
+                    AiravataSystemException, AuthorizationException, TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         ExperimentModel experimentModel = null;
         try {
             String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
             experimentModel = regClient.getExperiment(airavataExperimentId);
             registryClientPool.returnResource(regClient);
-            if(gatewayId.equals(experimentModel.getGatewayId())){
+            if (gatewayId.equals(experimentModel.getGatewayId())) {
                 return experimentModel;
             } else {
                 throw new AuthorizationException("User does not have permission to access this resource");
@@ -1712,8 +1853,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public ExperimentModel getDetailedExperimentTree(AuthzToken authzToken, String airavataExperimentId) throws InvalidRequestException,
-            ExperimentNotFoundException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public ExperimentModel getDetailedExperimentTree(AuthzToken authzToken, String airavataExperimentId)
+            throws InvalidRequestException, ExperimentNotFoundException, AiravataClientException,
+                    AiravataSystemException, AuthorizationException, TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
@@ -1759,20 +1901,27 @@ public class AiravataServerHandler implements Airavata.Iface {
     @Override
     @SecurityCheck
     public void updateExperiment(AuthzToken authzToken, String airavataExperimentId, ExperimentModel experiment)
-            throws InvalidRequestException, ExperimentNotFoundException, AiravataClientException, AiravataSystemException,
-            AuthorizationException, TException {
+            throws InvalidRequestException, ExperimentNotFoundException, AiravataClientException,
+                    AiravataSystemException, AuthorizationException, TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
             ExperimentModel experimentModel = regClient.getExperiment(airavataExperimentId);
             String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
-            if(ServerSettings.isEnableSharing() && !authzToken.getClaimsMap().get(org.apache.airavata.common.utils.Constants.USER_NAME).equals(experimentModel.getUserName())
-                    || !authzToken.getClaimsMap().get(org.apache.airavata.common.utils.Constants.GATEWAY_ID).equals(experimentModel.getGatewayId())){
+            if (ServerSettings.isEnableSharing()
+                            && !authzToken
+                                    .getClaimsMap()
+                                    .get(org.apache.airavata.common.utils.Constants.USER_NAME)
+                                    .equals(experimentModel.getUserName())
+                    || !authzToken
+                            .getClaimsMap()
+                            .get(org.apache.airavata.common.utils.Constants.GATEWAY_ID)
+                            .equals(experimentModel.getGatewayId())) {
                 try {
                     // Verify WRITE access
                     String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-                    if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                            airavataExperimentId, gatewayId + ":WRITE")){
+                    if (!sharingClient.userHasAccess(
+                            gatewayId, userId + "@" + gatewayId, airavataExperimentId, gatewayId + ":WRITE")) {
                         throw new AuthorizationException("User does not have permission to access this resource");
                     }
                 } catch (Exception e) {
@@ -1808,7 +1957,8 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public void updateExperimentConfiguration(AuthzToken authzToken, String airavataExperimentId, UserConfigurationDataModel userConfiguration)
+    public void updateExperimentConfiguration(
+            AuthzToken authzToken, String airavataExperimentId, UserConfigurationDataModel userConfiguration)
             throws AuthorizationException, TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
@@ -1818,10 +1968,11 @@ public class AiravataServerHandler implements Airavata.Iface {
             logger.error(airavataExperimentId, "Error while updating user configuration", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while updating user configuration. " +
-                    "Update experiment is only valid for experiments " +
-                    "with status CREATED, VALIDATED, CANCELLED, FAILED and UNKNOWN. Make sure the given " +
-                    "experiment is in one of above statuses...  " + e.getMessage());
+            exception.setMessage(
+                    "Error while updating user configuration. " + "Update experiment is only valid for experiments "
+                            + "with status CREATED, VALIDATED, CANCELLED, FAILED and UNKNOWN. Make sure the given "
+                            + "experiment is in one of above statuses...  "
+                            + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -1829,8 +1980,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public void updateResourceScheduleing(AuthzToken authzToken, String airavataExperimentId,
-                                          ComputationalResourceSchedulingModel resourceScheduling) throws AuthorizationException, TException {
+    public void updateResourceScheduleing(
+            AuthzToken authzToken, String airavataExperimentId, ComputationalResourceSchedulingModel resourceScheduling)
+            throws AuthorizationException, TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             regClient.updateResourceScheduleing(airavataExperimentId, resourceScheduling);
@@ -1839,10 +1991,11 @@ public class AiravataServerHandler implements Airavata.Iface {
             logger.error(airavataExperimentId, "Error while updating scheduling info", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while updating scheduling info. " +
-                    "Update experiment is only valid for experiments " +
-                    "with status CREATED, VALIDATED, CANCELLED, FAILED and UNKNOWN. Make sure the given " +
-                    "experiment is in one of above statuses...  " + e.getMessage());
+            exception.setMessage(
+                    "Error while updating scheduling info. " + "Update experiment is only valid for experiments "
+                            + "with status CREATED, VALIDATED, CANCELLED, FAILED and UNKNOWN. Make sure the given "
+                            + "experiment is in one of above statuses...  "
+                            + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -1863,34 +2016,34 @@ public class AiravataServerHandler implements Airavata.Iface {
     @SecurityCheck
     public boolean validateExperiment(AuthzToken authzToken, String airavataExperimentId) throws TException {
         // TODO - call validation module and validate experiment
-/*     	try {
-            ExperimentModel experimentModel = regClient.getExperiment(airavataExperimentId);
- 			if (experimentModel == null) {
-                logger.error(airavataExperimentId, "Experiment validation failed , experiment {} doesn't exist.", airavataExperimentId);
-                throw new ExperimentNotFoundException("Requested experiment id " + airavataExperimentId + " does not exist in the system..");
-            }
-        } catch (RegistryServiceException | ApplicationSettingsException e1) {
- 			  logger.error(airavataExperimentId, "Error while retrieving projects", e1);
- 	            AiravataSystemException exception = new AiravataSystemException();
- 	            exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
- 	            exception.setMessage("Error while retrieving projects. More info : " + e1.getMessage());
- 	            throw exception;
- 		}
-
-        Client orchestratorClient = getOrchestratorClient();
-        try{
-        if (orchestratorClient.validateExperiment(airavataExperimentId)) {
-            logger.debug(airavataExperimentId, "Experiment validation succeed.");
-            return true;
-        } else {
-            logger.debug(airavataExperimentId, "Experiment validation failed.");
-            return false;
-        }}catch (TException e){
-            throw e;
-        }finally {
-            orchestratorClient.getOutputProtocol().getTransport().close();
-            orchestratorClient.getInputProtocol().getTransport().close();
-        }*/
+        /*     	try {
+                 ExperimentModel experimentModel = regClient.getExperiment(airavataExperimentId);
+        	if (experimentModel == null) {
+                     logger.error(airavataExperimentId, "Experiment validation failed , experiment {} doesn't exist.", airavataExperimentId);
+                     throw new ExperimentNotFoundException("Requested experiment id " + airavataExperimentId + " does not exist in the system..");
+                 }
+             } catch (RegistryServiceException | ApplicationSettingsException e1) {
+        	  logger.error(airavataExperimentId, "Error while retrieving projects", e1);
+                   AiravataSystemException exception = new AiravataSystemException();
+                   exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
+                   exception.setMessage("Error while retrieving projects. More info : " + e1.getMessage());
+                   throw exception;
+        }
+
+             Client orchestratorClient = getOrchestratorClient();
+             try{
+             if (orchestratorClient.validateExperiment(airavataExperimentId)) {
+                 logger.debug(airavataExperimentId, "Experiment validation succeed.");
+                 return true;
+             } else {
+                 logger.debug(airavataExperimentId, "Experiment validation failed.");
+                 return false;
+             }}catch (TException e){
+                 throw e;
+             }finally {
+                 orchestratorClient.getOutputProtocol().getTransport().close();
+                 orchestratorClient.getInputProtocol().getTransport().close();
+             }*/
 
         return true;
     }
@@ -1933,7 +2086,6 @@ public class AiravataServerHandler implements Airavata.Iface {
         }
     }
 
-
     @Override
     @SecurityCheck
     public List<OutputDataObjectType> getExperimentOutputs(AuthzToken authzToken, String airavataExperimentId)
@@ -1955,8 +2107,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<OutputDataObjectType> getIntermediateOutputs(AuthzToken authzToken, String airavataExperimentId) throws InvalidRequestException,
-            ExperimentNotFoundException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<OutputDataObjectType> getIntermediateOutputs(AuthzToken authzToken, String airavataExperimentId)
+            throws InvalidRequestException, ExperimentNotFoundException, AiravataClientException,
+                    AiravataSystemException, AuthorizationException, TException {
         return null;
     }
 
@@ -1964,14 +2117,15 @@ public class AiravataServerHandler implements Airavata.Iface {
     @SecurityCheck
     public void fetchIntermediateOutputs(AuthzToken authzToken, String airavataExperimentId, List<String> outputNames)
             throws InvalidRequestException, ExperimentNotFoundException, AiravataClientException,
-            AiravataSystemException, AuthorizationException, TException {
+                    AiravataSystemException, AuthorizationException, TException {
 
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
 
             // Verify that user has WRITE access to experiment
-            final boolean hasAccess = userHasAccessInternal(sharingClient, authzToken, airavataExperimentId, ResourcePermissionType.WRITE);
+            final boolean hasAccess = userHasAccessInternal(
+                    sharingClient, authzToken, airavataExperimentId, ResourcePermissionType.WRITE);
             if (!hasAccess) {
                 throw new AuthorizationException("User does not have WRITE access to this experiment");
             }
@@ -1997,7 +2151,8 @@ public class AiravataServerHandler implements Airavata.Iface {
                         // Filter out completed or failed processes
                         if (p.getProcessStatusesSize() > 0) {
                             ProcessStatus latestStatus = p.getProcessStatuses().get(p.getProcessStatusesSize() - 1);
-                            if (latestStatus.getState() == ProcessState.COMPLETED || latestStatus.getState() == ProcessState.FAILED) {
+                            if (latestStatus.getState() == ProcessState.COMPLETED
+                                    || latestStatus.getState() == ProcessState.FAILED) {
                                 return false;
                             }
                         }
@@ -2021,10 +2176,15 @@ public class AiravataServerHandler implements Airavata.Iface {
             sharingClientPool.returnResource(sharingClient);
             throw e;
         } catch (Exception e) {
-            logger.error("Error while processing request to fetch intermediate outputs for experiment: " + airavataExperimentId, e);
+            logger.error(
+                    "Error while processing request to fetch intermediate outputs for experiment: "
+                            + airavataExperimentId,
+                    e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while processing request to fetch intermediate outputs for experiment. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while processing request to fetch intermediate outputs for experiment. More info : "
+                            + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             sharingClientPool.returnBrokenResource(sharingClient);
             throw exception;
@@ -2033,15 +2193,17 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public ProcessStatus getIntermediateOutputProcessStatus(AuthzToken authzToken, String airavataExperimentId,
-            List<String> outputNames) throws InvalidRequestException, ExperimentNotFoundException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public ProcessStatus getIntermediateOutputProcessStatus(
+            AuthzToken authzToken, String airavataExperimentId, List<String> outputNames)
+            throws InvalidRequestException, ExperimentNotFoundException, AiravataClientException,
+                    AiravataSystemException, AuthorizationException, TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
 
             // Verify that user has READ access to experiment
-            final boolean hasAccess = userHasAccessInternal(sharingClient, authzToken, airavataExperimentId, ResourcePermissionType.READ);
+            final boolean hasAccess =
+                    userHasAccessInternal(sharingClient, authzToken, airavataExperimentId, ResourcePermissionType.READ);
             if (!hasAccess) {
                 throw new AuthorizationException("User does not have WRITE access to this experiment");
             }
@@ -2054,10 +2216,13 @@ public class AiravataServerHandler implements Airavata.Iface {
             Optional<ProcessModel> mostRecentOutputFetchProcess = existingExperiment.getProcesses().stream()
                     .filter(p -> p.getTasks().stream().allMatch(t -> t.getTaskType() == TaskTypes.OUTPUT_FETCHING))
                     .filter(p -> {
-                        List<String> names = p.getProcessOutputs().stream().map(o -> o.getName()).collect(Collectors.toList());
+                        List<String> names = p.getProcessOutputs().stream()
+                                .map(o -> o.getName())
+                                .collect(Collectors.toList());
                         return new HashSet<>(names).equals(new HashSet<>(outputNames));
                     })
-                    .sorted(Comparator.comparing(ProcessModel::getLastUpdateTime).reversed())
+                    .sorted(Comparator.comparing(ProcessModel::getLastUpdateTime)
+                            .reversed())
                     .findFirst();
 
             if (!mostRecentOutputFetchProcess.isPresent()) {
@@ -2083,10 +2248,15 @@ public class AiravataServerHandler implements Airavata.Iface {
             sharingClientPool.returnResource(sharingClient);
             throw e;
         } catch (Exception e) {
-            logger.error("Error while processing request to fetch intermediate outputs for experiment: " + airavataExperimentId, e);
+            logger.error(
+                    "Error while processing request to fetch intermediate outputs for experiment: "
+                            + airavataExperimentId,
+                    e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while processing request to fetch intermediate outputs for experiment. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while processing request to fetch intermediate outputs for experiment. More info : "
+                            + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             sharingClientPool.returnBrokenResource(sharingClient);
             throw exception;
@@ -2113,8 +2283,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<JobModel> getJobDetails(AuthzToken authzToken, String airavataExperimentId) throws InvalidRequestException,
-            ExperimentNotFoundException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<JobModel> getJobDetails(AuthzToken authzToken, String airavataExperimentId)
+            throws InvalidRequestException, ExperimentNotFoundException, AiravataClientException,
+                    AiravataSystemException, AuthorizationException, TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             List<JobModel> result = regClient.getJobDetails(airavataExperimentId);
@@ -2130,7 +2301,6 @@ public class AiravataServerHandler implements Airavata.Iface {
         }
     }
 
-
     /**
      * Launch a previously created and configured experiment. Airavata Server will then start processing the request and appropriate
      * notifications and intermediate and output data will be subsequently available for this experiment.
@@ -2170,79 +2340,111 @@ public class AiravataServerHandler implements Airavata.Iface {
             ExperimentModel experiment = regClient.getExperiment(airavataExperimentId);
 
             if (experiment == null) {
-                logger.error(airavataExperimentId, "Error while launching experiment, experiment {} doesn't exist.", airavataExperimentId);
-                throw new ExperimentNotFoundException("Requested experiment id " + airavataExperimentId + " does not exist in the system..");
+                logger.error(
+                        airavataExperimentId,
+                        "Error while launching experiment, experiment {} doesn't exist.",
+                        airavataExperimentId);
+                throw new ExperimentNotFoundException(
+                        "Requested experiment id " + airavataExperimentId + " does not exist in the system..");
             }
             String username = authzToken.getClaimsMap().get(Constants.USER_NAME);
 
-            // For backwards compatibility, if there is no groupResourceProfileId, look up one that is shared with the user
+            // For backwards compatibility, if there is no groupResourceProfileId, look up one that is shared with the
+            // user
             if (!experiment.getUserConfigurationData().isSetGroupResourceProfileId()) {
                 List<GroupResourceProfile> groupResourceProfiles = getGroupResourceList(authzToken, gatewayId);
                 logger.info("Checking for groupResourceProfileId for ExpID: " + airavataExperimentId);
                 if (!groupResourceProfiles.isEmpty()) {
                     // Just pick the first one
-                    final String groupResourceProfileId = groupResourceProfiles.get(0).getGroupResourceProfileId();
-                    logger.warn("Experiment {} doesn't have groupResourceProfileId, picking first one user has access to: {}", airavataExperimentId, groupResourceProfileId);
+                    final String groupResourceProfileId =
+                            groupResourceProfiles.get(0).getGroupResourceProfileId();
+                    logger.warn(
+                            "Experiment {} doesn't have groupResourceProfileId, picking first one user has access to: {}",
+                            airavataExperimentId,
+                            groupResourceProfileId);
                     experiment.getUserConfigurationData().setGroupResourceProfileId(groupResourceProfileId);
-                    regClient.updateExperimentConfiguration(airavataExperimentId, experiment.getUserConfigurationData());
+                    regClient.updateExperimentConfiguration(
+                            airavataExperimentId, experiment.getUserConfigurationData());
                 } else {
-                    throw new AuthorizationException("User " + username + " in gateway " + gatewayId + " doesn't have access to any group resource profiles.");
+                    throw new AuthorizationException("User " + username + " in gateway " + gatewayId
+                            + " doesn't have access to any group resource profiles.");
                 }
             }
 
             // Verify user has READ access to groupResourceProfileId
-            if (!sharingClient.userHasAccess(gatewayId, username + "@" + gatewayId, experiment.getUserConfigurationData().getGroupResourceProfileId(), gatewayId + ":READ")) {
-                throw new AuthorizationException("User " + username + " in gateway " + gatewayId + " doesn't have access to group resource profile " + experiment.getUserConfigurationData().getGroupResourceProfileId());
+            if (!sharingClient.userHasAccess(
+                    gatewayId,
+                    username + "@" + gatewayId,
+                    experiment.getUserConfigurationData().getGroupResourceProfileId(),
+                    gatewayId + ":READ")) {
+                throw new AuthorizationException("User " + username + " in gateway " + gatewayId
+                        + " doesn't have access to group resource profile "
+                        + experiment.getUserConfigurationData().getGroupResourceProfileId());
             }
 
             // Verify user has READ access to Application Deployment
             final String appInterfaceId = experiment.getExecutionId();
-            ApplicationInterfaceDescription applicationInterfaceDescription = regClient.getApplicationInterface(appInterfaceId);
+            ApplicationInterfaceDescription applicationInterfaceDescription =
+                    regClient.getApplicationInterface(appInterfaceId);
 
             List<String> appModuleIds = applicationInterfaceDescription.getApplicationModules();
-            // Assume that there is only one app module for this interface (otherwise, how could we figure out the deployment)
+            // Assume that there is only one app module for this interface (otherwise, how could we figure out the
+            // deployment)
             String appModuleId = appModuleIds.get(0);
-            List<ApplicationDeploymentDescription> applicationDeploymentDescriptions = regClient.getApplicationDeployments(appModuleId);
-
+            List<ApplicationDeploymentDescription> applicationDeploymentDescriptions =
+                    regClient.getApplicationDeployments(appModuleId);
 
             if (!experiment.getUserConfigurationData().isAiravataAutoSchedule()) {
-            final String resourceHostId = experiment.getUserConfigurationData().getComputationalResourceScheduling().getResourceHostId();
-
-
-            Optional<ApplicationDeploymentDescription> applicationDeploymentDescription = applicationDeploymentDescriptions
-                    .stream()
-                    .filter(dep -> dep.getComputeHostId().equals(resourceHostId))
-                    .findFirst();
-            if (applicationDeploymentDescription.isPresent()) {
-                final String appDeploymentId = applicationDeploymentDescription.get().getAppDeploymentId();
-                if (!sharingClient.userHasAccess(gatewayId, username + "@" + gatewayId, appDeploymentId, gatewayId + ":READ")) {
-                    throw new AuthorizationException("User " + username + " in gateway " + gatewayId + " doesn't have access to app deployment " + appDeploymentId);
+                final String resourceHostId = experiment
+                        .getUserConfigurationData()
+                        .getComputationalResourceScheduling()
+                        .getResourceHostId();
+
+                Optional<ApplicationDeploymentDescription> applicationDeploymentDescription =
+                        applicationDeploymentDescriptions.stream()
+                                .filter(dep -> dep.getComputeHostId().equals(resourceHostId))
+                                .findFirst();
+                if (applicationDeploymentDescription.isPresent()) {
+                    final String appDeploymentId =
+                            applicationDeploymentDescription.get().getAppDeploymentId();
+                    if (!sharingClient.userHasAccess(
+                            gatewayId, username + "@" + gatewayId, appDeploymentId, gatewayId + ":READ")) {
+                        throw new AuthorizationException("User " + username + " in gateway " + gatewayId
+                                + " doesn't have access to app deployment " + appDeploymentId);
+                    }
+                } else {
+                    throw new InvalidRequestException("Application deployment doesn't exist for application interface "
+                            + appInterfaceId + " and host " + resourceHostId + " in gateway " + gatewayId);
+                }
+            } else if (experiment.getUserConfigurationData().getAutoScheduledCompResourceSchedulingList() != null
+                    && !experiment
+                            .getUserConfigurationData()
+                            .getAutoScheduledCompResourceSchedulingList()
+                            .isEmpty()) {
+                List<ComputationalResourceSchedulingModel> compResourceSchedulingList =
+                        experiment.getUserConfigurationData().getAutoScheduledCompResourceSchedulingList();
+                for (ComputationalResourceSchedulingModel crScheduling : compResourceSchedulingList) {
+                    Optional<ApplicationDeploymentDescription> applicationDeploymentDescription =
+                            applicationDeploymentDescriptions.stream()
+                                    .filter(dep -> dep.getComputeHostId().equals(crScheduling.getResourceHostId()))
+                                    .findFirst();
+                    if (applicationDeploymentDescription.isPresent()) {
+                        final String appDeploymentId =
+                                applicationDeploymentDescription.get().getAppDeploymentId();
+                        if (!sharingClient.userHasAccess(
+                                gatewayId, username + "@" + gatewayId, appDeploymentId, gatewayId + ":READ")) {
+                            throw new AuthorizationException("User " + username + " in gateway " + gatewayId
+                                    + " doesn't have access to app deployment " + appDeploymentId);
+                        }
+                    }
                 }
-            }
-            else {
-                throw new InvalidRequestException("Application deployment doesn't exist for application interface " + appInterfaceId + " and host " + resourceHostId + " in gateway " + gatewayId);
-            }} else if (experiment.getUserConfigurationData().getAutoScheduledCompResourceSchedulingList() != null &&
-                    !experiment.getUserConfigurationData().getAutoScheduledCompResourceSchedulingList().isEmpty()) {
-               List<ComputationalResourceSchedulingModel> compResourceSchedulingList  =  experiment.
-                       getUserConfigurationData().getAutoScheduledCompResourceSchedulingList();
-               for(ComputationalResourceSchedulingModel crScheduling: compResourceSchedulingList){
-                   Optional<ApplicationDeploymentDescription> applicationDeploymentDescription = applicationDeploymentDescriptions
-                           .stream()
-                           .filter(dep -> dep.getComputeHostId().equals(crScheduling.getResourceHostId()))
-                           .findFirst();
-                   if (applicationDeploymentDescription.isPresent()) {
-                       final String appDeploymentId = applicationDeploymentDescription.get().getAppDeploymentId();
-                       if (!sharingClient.userHasAccess(gatewayId, username + "@" + gatewayId, appDeploymentId, gatewayId + ":READ")) {
-                           throw new AuthorizationException("User " + username + " in gateway " + gatewayId + " doesn't have access to app deployment " + appDeploymentId);
-                       }
-                   }
-               }
             }
             submitExperiment(gatewayId, airavataExperimentId);
-            logger.info("Experiment with ExpId: " + airavataExperimentId + " was submitted in gateway with gatewayID: " + gatewayId);
+            logger.info("Experiment with ExpId: " + airavataExperimentId + " was submitted in gateway with gatewayID: "
+                    + gatewayId);
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
-        } catch (InvalidRequestException|ExperimentNotFoundException|AuthorizationException e) {
+        } catch (InvalidRequestException | ExperimentNotFoundException | AuthorizationException e) {
             logger.error(e.getMessage(), e);
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
@@ -2258,17 +2460,15 @@ public class AiravataServerHandler implements Airavata.Iface {
         }
     }
 
-
-
-//    private OrchestratorService.Client getOrchestratorClient() throws TException {
-//	    try {
-//		    final String serverHost = ServerSettings.getOrchestratorServerHost();
-//		    final int serverPort = ServerSettings.getOrchestratorServerPort();
-//		    return OrchestratorClientFactory.createOrchestratorClient(serverHost, serverPort);
-//	    } catch (AiravataException e) {
-//		    throw new TException(e);
-//	    }
-//    }
+    //    private OrchestratorService.Client getOrchestratorClient() throws TException {
+    //	    try {
+    //		    final String serverHost = ServerSettings.getOrchestratorServerHost();
+    //		    final int serverPort = ServerSettings.getOrchestratorServerPort();
+    //		    return OrchestratorClientFactory.createOrchestratorClient(serverHost, serverPort);
+    //	    } catch (AiravataException e) {
+    //		    throw new TException(e);
+    //	    }
+    //    }
 
     /**
      * Clone an specified experiment with a new name. A copy of the experiment configuration is made and is persisted with new metadata.
@@ -2313,15 +2513,23 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public String cloneExperiment(AuthzToken authzToken, String existingExperimentID, String newExperimentName, String newExperimentProjectId)
-            throws InvalidRequestException, ExperimentNotFoundException, AiravataClientException, AiravataSystemException,
-            AuthorizationException, ProjectNotFoundException, TException {
+    public String cloneExperiment(
+            AuthzToken authzToken, String existingExperimentID, String newExperimentName, String newExperimentProjectId)
+            throws InvalidRequestException, ExperimentNotFoundException, AiravataClientException,
+                    AiravataSystemException, AuthorizationException, ProjectNotFoundException, TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
             // getExperiment will apply sharing permissions
             ExperimentModel existingExperiment = this.getExperiment(authzToken, existingExperimentID);
-            String result = cloneExperimentInternal(regClient, sharingClient, authzToken, existingExperimentID, newExperimentName, newExperimentProjectId, existingExperiment);
+            String result = cloneExperimentInternal(
+                    regClient,
+                    sharingClient,
+                    authzToken,
+                    existingExperimentID,
+                    newExperimentName,
+                    newExperimentProjectId,
+                    existingExperiment);
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
             return result;
@@ -2329,7 +2537,8 @@ public class AiravataServerHandler implements Airavata.Iface {
             logger.error(existingExperimentID, "Error while cloning the experiment with existing configuration...", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while cloning the experiment with existing configuration. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while cloning the experiment with existing configuration. More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             sharingClientPool.returnBrokenResource(sharingClient);
             throw exception;
@@ -2338,15 +2547,23 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public String cloneExperimentByAdmin(AuthzToken authzToken, String existingExperimentID, String newExperimentName, String newExperimentProjectId)
-            throws InvalidRequestException, ExperimentNotFoundException, AiravataClientException, AiravataSystemException,
-            AuthorizationException, ProjectNotFoundException, TException {
+    public String cloneExperimentByAdmin(
+            AuthzToken authzToken, String existingExperimentID, String newExperimentName, String newExperimentProjectId)
+            throws InvalidRequestException, ExperimentNotFoundException, AiravataClientException,
+                    AiravataSystemException, AuthorizationException, ProjectNotFoundException, TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
             // get existing experiment by bypassing normal sharing permissions for the admin user
             ExperimentModel existingExperiment = this.getExperimentByAdmin(authzToken, existingExperimentID);
-            String result = cloneExperimentInternal(regClient, sharingClient, authzToken, existingExperimentID, newExperimentName, newExperimentProjectId, existingExperiment);
+            String result = cloneExperimentInternal(
+                    regClient,
+                    sharingClient,
+                    authzToken,
+                    existingExperimentID,
+                    newExperimentName,
+                    newExperimentProjectId,
+                    existingExperiment);
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
             return result;
@@ -2354,27 +2571,43 @@ public class AiravataServerHandler implements Airavata.Iface {
             logger.error(existingExperimentID, "Error while cloning the experiment with existing configuration...", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while cloning the experiment with existing configuration. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while cloning the experiment with existing configuration. More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             sharingClientPool.returnBrokenResource(sharingClient);
             throw exception;
         }
     }
 
-    private String cloneExperimentInternal(RegistryService.Client regClient, SharingRegistryService.Client sharingClient,
-                                           AuthzToken authzToken, String existingExperimentID, String newExperimentName, String newExperimentProjectId, ExperimentModel existingExperiment)
-            throws ExperimentNotFoundException, ProjectNotFoundException, TException, AuthorizationException, ApplicationSettingsException {
-        if (existingExperiment == null){
-            logger.error(existingExperimentID, "Error while cloning experiment {}, experiment doesn't exist.", existingExperimentID);
-            throw new ExperimentNotFoundException("Requested experiment id " + existingExperimentID + " does not exist in the system..");
+    private String cloneExperimentInternal(
+            RegistryService.Client regClient,
+            SharingRegistryService.Client sharingClient,
+            AuthzToken authzToken,
+            String existingExperimentID,
+            String newExperimentName,
+            String newExperimentProjectId,
+            ExperimentModel existingExperiment)
+            throws ExperimentNotFoundException, ProjectNotFoundException, TException, AuthorizationException,
+                    ApplicationSettingsException {
+        if (existingExperiment == null) {
+            logger.error(
+                    existingExperimentID,
+                    "Error while cloning experiment {}, experiment doesn't exist.",
+                    existingExperimentID);
+            throw new ExperimentNotFoundException(
+                    "Requested experiment id " + existingExperimentID + " does not exist in the system..");
         }
         if (newExperimentProjectId != null) {
 
             // getProject will apply sharing permissions
             Project project = this.getProject(authzToken, newExperimentProjectId);
-            if (project == null){
-                logger.error("Error while cloning experiment {}, project {} doesn't exist.", existingExperimentID, newExperimentProjectId);
-                throw new ProjectNotFoundException("Requested project id " + newExperimentProjectId + " does not exist in the system..");
+            if (project == null) {
+                logger.error(
+                        "Error while cloning experiment {}, project {} doesn't exist.",
+                        existingExperimentID,
+                        newExperimentProjectId);
+                throw new ProjectNotFoundException(
+                        "Requested project id " + newExperimentProjectId + " does not exist in the system..");
             }
             existingExperiment.setProjectId(project.getProjectID());
         }
@@ -2382,31 +2615,41 @@ public class AiravataServerHandler implements Airavata.Iface {
         // make sure user has write access to the project
         String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
         String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-        if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                existingExperiment.getProjectId(), gatewayId + ":WRITE")){
-            logger.error("Error while cloning experiment {}, user doesn't have write access to project {}", existingExperimentID, existingExperiment.getProjectId());
+        if (!sharingClient.userHasAccess(
+                gatewayId, userId + "@" + gatewayId, existingExperiment.getProjectId(), gatewayId + ":WRITE")) {
+            logger.error(
+                    "Error while cloning experiment {}, user doesn't have write access to project {}",
+                    existingExperimentID,
+                    existingExperiment.getProjectId());
             throw new AuthorizationException("User does not have permission to clone an experiment in this project");
         }
 
         existingExperiment.setCreationTime(AiravataUtils.getCurrentTimestamp().getTime());
-        if (existingExperiment.getExecutionId() != null){
-            List<OutputDataObjectType> applicationOutputs = regClient.getApplicationOutputs(existingExperiment.getExecutionId());
+        if (existingExperiment.getExecutionId() != null) {
+            List<OutputDataObjectType> applicationOutputs =
+                    regClient.getApplicationOutputs(existingExperiment.getExecutionId());
             existingExperiment.setExperimentOutputs(applicationOutputs);
         }
-        if (validateString(newExperimentName)){
+        if (validateString(newExperimentName)) {
             existingExperiment.setExperimentName(newExperimentName);
         }
         existingExperiment.unsetErrors();
         existingExperiment.unsetProcesses();
         existingExperiment.unsetExperimentStatus();
-        if(existingExperiment.getUserConfigurationData() != null && existingExperiment.getUserConfigurationData()
-                .getComputationalResourceScheduling() != null 
-                && existingExperiment.getUserConfigurationData().getComputationalResourceScheduling().getResourceHostId() != null){
-            String compResourceId = existingExperiment.getUserConfigurationData()
-                    .getComputationalResourceScheduling().getResourceHostId();
+        if (existingExperiment.getUserConfigurationData() != null
+                && existingExperiment.getUserConfigurationData().getComputationalResourceScheduling() != null
+                && existingExperiment
+                                .getUserConfigurationData()
+                                .getComputationalResourceScheduling()
+                                .getResourceHostId()
+                        != null) {
+            String compResourceId = existingExperiment
+                    .getUserConfigurationData()
+                    .getComputationalResourceScheduling()
+                    .getResourceHostId();
 
             ComputeResourceDescription computeResourceDescription = regClient.getComputeResource(compResourceId);
-            if(!computeResourceDescription.isEnabled()){
+            if (!computeResourceDescription.isEnabled()) {
                 existingExperiment.getUserConfigurationData().setComputationalResourceScheduling(null);
             }
         }
@@ -2414,7 +2657,7 @@ public class AiravataServerHandler implements Airavata.Iface {
         existingExperiment.setUserName(userId);
         String expId = regClient.createExperiment(gatewayId, existingExperiment);
 
-        if(ServerSettings.isEnableSharing()){
+        if (ServerSettings.isEnableSharing()) {
             try {
                 Entity entity = new Entity();
                 entity.setEntityId(expId);
@@ -2465,13 +2708,26 @@ public class AiravataServerHandler implements Airavata.Iface {
         try {
             ExperimentModel existingExperiment = regClient.getExperiment(airavataExperimentId);
             ExperimentStatus experimentLastStatus = regClient.getExperimentStatus(airavataExperimentId);
-            if (existingExperiment == null){
-                logger.error(airavataExperimentId, "Error while cancelling experiment {}, experiment doesn't exist.", airavataExperimentId);
-                throw new ExperimentNotFoundException("Requested experiment id " + airavataExperimentId + " does not exist in the system..");
+            if (existingExperiment == null) {
+                logger.error(
+                        airavataExperimentId,
+                        "Error while cancelling experiment {}, experiment doesn't exist.",
+                        airavataExperimentId);
+                throw new ExperimentNotFoundException(
+                        "Requested experiment id " + airavataExperimentId + " does not exist in the system..");
             }
             switch (experimentLastStatus.getState()) {
-                case COMPLETED: case CANCELED: case FAILED: case CANCELING:
-                    logger.warn("Can't terminate already {} experiment", existingExperiment.getExperimentStatus().get(0).getState().name());
+                case COMPLETED:
+                case CANCELED:
+                case FAILED:
+                case CANCELING:
+                    logger.warn(
+                            "Can't terminate already {} experiment",
+                            existingExperiment
+                                    .getExperimentStatus()
+                                    .get(0)
+                                    .getState()
+                                    .name());
                     break;
                 case CREATED:
                     logger.warn("Experiment termination is only allowed for launched experiments.");
@@ -2490,7 +2746,6 @@ public class AiravataServerHandler implements Airavata.Iface {
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
-
     }
 
     /**
@@ -2502,8 +2757,10 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public String registerApplicationModule(AuthzToken authzToken, String gatewayId, ApplicationModule applicationModule)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String registerApplicationModule(
+            AuthzToken authzToken, String gatewayId, ApplicationModule applicationModule)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             String result = regClient.registerApplicationModule(gatewayId, applicationModule);
@@ -2528,8 +2785,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public ApplicationModule getApplicationModule(AuthzToken authzToken, String appModuleId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public ApplicationModule getApplicationModule(AuthzToken authzToken, String appModuleId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             ApplicationModule result = regClient.getApplicationModule(appModuleId);
@@ -2555,8 +2813,10 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean updateApplicationModule(AuthzToken authzToken, String appModuleId, ApplicationModule applicationModule)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateApplicationModule(
+            AuthzToken authzToken, String appModuleId, ApplicationModule applicationModule)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.updateApplicationModule(appModuleId, applicationModule);
@@ -2580,8 +2840,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public List<ApplicationModule> getAllAppModules(AuthzToken authzToken, String gatewayId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<ApplicationModule> getAllAppModules(AuthzToken authzToken, String gatewayId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             List<ApplicationModule> result = regClient.getAllAppModules(gatewayId);
@@ -2605,8 +2866,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public List<ApplicationModule> getAccessibleAppModules(AuthzToken authzToken, String gatewayId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<ApplicationModule> getAccessibleAppModules(AuthzToken authzToken, String gatewayId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         String userName = authzToken.getClaimsMap().get(Constants.USER_NAME);
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
@@ -2624,18 +2886,27 @@ public class AiravataServerHandler implements Airavata.Iface {
                 permissionTypeFilter.setSearchCondition(SearchCondition.EQUAL);
                 permissionTypeFilter.setValue(gatewayId + ":" + ResourcePermissionType.READ);
                 sharingFilters.add(permissionTypeFilter);
-                sharingClient.searchEntities(authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
-                        userName + "@" + gatewayId, sharingFilters, 0, -1).forEach(a -> accessibleAppDeploymentIds.add(a.getEntityId()));
+                sharingClient
+                        .searchEntities(
+                                authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
+                                userName + "@" + gatewayId,
+                                sharingFilters,
+                                0,
+                                -1)
+                        .forEach(a -> accessibleAppDeploymentIds.add(a.getEntityId()));
             }
             List<String> accessibleComputeResourceIds = new ArrayList<>();
             List<GroupResourceProfile> groupResourceProfileList = getGroupResourceList(authzToken, gatewayId);
-            for(GroupResourceProfile groupResourceProfile : groupResourceProfileList) {
-                List<GroupComputeResourcePreference> groupComputeResourcePreferenceList = groupResourceProfile.getComputePreferences();
-                for(GroupComputeResourcePreference groupComputeResourcePreference : groupComputeResourcePreferenceList) {
+            for (GroupResourceProfile groupResourceProfile : groupResourceProfileList) {
+                List<GroupComputeResourcePreference> groupComputeResourcePreferenceList =
+                        groupResourceProfile.getComputePreferences();
+                for (GroupComputeResourcePreference groupComputeResourcePreference :
+                        groupComputeResourcePreferenceList) {
                     accessibleComputeResourceIds.add(groupComputeResourcePreference.getComputeResourceId());
                 }
             }
-            List<ApplicationModule> result = regClient.getAccessibleAppModules(gatewayId, accessibleAppDeploymentIds, accessibleComputeResourceIds);
+            List<ApplicationModule> result = regClient.getAccessibleAppModules(
+                    gatewayId, accessibleAppDeploymentIds, accessibleComputeResourceIds);
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
             return result;
@@ -2659,8 +2930,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean deleteApplicationModule(AuthzToken authzToken, String appModuleId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean deleteApplicationModule(AuthzToken authzToken, String appModuleId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.deleteApplicationModule(appModuleId);
@@ -2684,8 +2956,10 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public String registerApplicationDeployment(AuthzToken authzToken, String gatewayId, ApplicationDeploymentDescription applicationDeployment)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String registerApplicationDeployment(
+            AuthzToken authzToken, String gatewayId, ApplicationDeploymentDescription applicationDeployment)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         // TODO: verify that gatewayId matches authzToken gatewayId
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
@@ -2726,14 +3000,17 @@ public class AiravataServerHandler implements Airavata.Iface {
     @Override
     @SecurityCheck
     public ApplicationDeploymentDescription getApplicationDeployment(AuthzToken authzToken, String appDeploymentId)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
             if (ServerSettings.isEnableSharing()) {
-                final boolean hasAccess = userHasAccessInternal(sharingClient, authzToken, appDeploymentId, ResourcePermissionType.READ);
+                final boolean hasAccess =
+                        userHasAccessInternal(sharingClient, authzToken, appDeploymentId, ResourcePermissionType.READ);
                 if (!hasAccess) {
-                    throw new AuthorizationException("User does not have access to application deployment " + appDeploymentId);
+                    throw new AuthorizationException(
+                            "User does not have access to application deployment " + appDeploymentId);
                 }
             }
             ApplicationDeploymentDescription result = regClient.getApplicationDeployment(appDeploymentId);
@@ -2761,16 +3038,19 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean updateApplicationDeployment(AuthzToken authzToken, String appDeploymentId,
-                                               ApplicationDeploymentDescription applicationDeployment)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateApplicationDeployment(
+            AuthzToken authzToken, String appDeploymentId, ApplicationDeploymentDescription applicationDeployment)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
             if (ServerSettings.isEnableSharing()) {
-                final boolean hasAccess = userHasAccessInternal(sharingClient, authzToken, appDeploymentId, ResourcePermissionType.WRITE);
+                final boolean hasAccess =
+                        userHasAccessInternal(sharingClient, authzToken, appDeploymentId, ResourcePermissionType.WRITE);
                 if (!hasAccess) {
-                    throw new AuthorizationException("User does not have WRITE access to application deployment " + appDeploymentId);
+                    throw new AuthorizationException(
+                            "User does not have WRITE access to application deployment " + appDeploymentId);
                 }
             }
             boolean result = regClient.updateApplicationDeployment(appDeploymentId, applicationDeployment);
@@ -2797,14 +3077,17 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean deleteApplicationDeployment(AuthzToken authzToken, String appDeploymentId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean deleteApplicationDeployment(AuthzToken authzToken, String appDeploymentId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
-            final boolean hasAccess = userHasAccessInternal(sharingClient, authzToken, appDeploymentId, ResourcePermissionType.WRITE);
+            final boolean hasAccess =
+                    userHasAccessInternal(sharingClient, authzToken, appDeploymentId, ResourcePermissionType.WRITE);
             if (!hasAccess) {
-                throw new AuthorizationException("User does not have WRITE access to application deployment " + appDeploymentId);
+                throw new AuthorizationException(
+                        "User does not have WRITE access to application deployment " + appDeploymentId);
             }
             final String domainId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
             boolean result = regClient.deleteApplicationDeployment(appDeploymentId);
@@ -2832,11 +3115,11 @@ public class AiravataServerHandler implements Airavata.Iface {
     @Override
     @SecurityCheck
     public List<ApplicationDeploymentDescription> getAllApplicationDeployments(AuthzToken authzToken, String gatewayId)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         return getAccessibleApplicationDeployments(authzToken, gatewayId, ResourcePermissionType.READ);
     }
 
-
     /**
      * Fetch all accessible Application Deployment Descriptions.
      *
@@ -2845,8 +3128,10 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public List<ApplicationDeploymentDescription> getAccessibleApplicationDeployments(AuthzToken authzToken, String gatewayId, ResourcePermissionType permissionType)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<ApplicationDeploymentDescription> getAccessibleApplicationDeployments(
+            AuthzToken authzToken, String gatewayId, ResourcePermissionType permissionType)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         String userName = authzToken.getClaimsMap().get(Constants.USER_NAME);
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
@@ -2864,18 +3149,27 @@ public class AiravataServerHandler implements Airavata.Iface {
                 permissionTypeFilter.setSearchCondition(SearchCondition.EQUAL);
                 permissionTypeFilter.setValue(gatewayId + ":" + permissionType.name());
                 sharingFilters.add(permissionTypeFilter);
-                sharingClient.searchEntities(authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
-                        userName + "@" + gatewayId, sharingFilters, 0, -1).forEach(a -> accessibleAppDeploymentIds.add(a.getEntityId()));
+                sharingClient
+                        .searchEntities(
+                                authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
+                                userName + "@" + gatewayId,
+                                sharingFilters,
+                                0,
+                                -1)
+                        .forEach(a -> accessibleAppDeploymentIds.add(a.getEntityId()));
             }
             List<String> accessibleComputeResourceIds = new ArrayList<>();
             List<GroupResourceProfile> groupResourceProfileList = getGroupResourceList(authzToken, gatewayId);
-            for(GroupResourceProfile groupResourceProfile : groupResourceProfileList) {
-                List<GroupComputeResourcePreference> groupComputeResourcePreferenceList = groupResourceProfile.getComputePreferences();
-                for(GroupComputeResourcePreference groupComputeResourcePreference : groupComputeResourcePreferenceList) {
+            for (GroupResourceProfile groupResourceProfile : groupResourceProfileList) {
+                List<GroupComputeResourcePreference> groupComputeResourcePreferenceList =
+                        groupResourceProfile.getComputePreferences();
+                for (GroupComputeResourcePreference groupComputeResourcePreference :
+                        groupComputeResourcePreferenceList) {
                     accessibleComputeResourceIds.add(groupComputeResourcePreference.getComputeResourceId());
                 }
             }
-            List<ApplicationDeploymentDescription> result = regClient.getAccessibleApplicationDeployments(gatewayId, accessibleAppDeploymentIds, accessibleComputeResourceIds);
+            List<ApplicationDeploymentDescription> result = regClient.getAccessibleApplicationDeployments(
+                    gatewayId, accessibleAppDeploymentIds, accessibleComputeResourceIds);
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
             return result;
@@ -2900,8 +3194,9 @@ public class AiravataServerHandler implements Airavata.Iface {
     @Override
     @SecurityCheck
     @Deprecated
-    public List<String> getAppModuleDeployedResources(AuthzToken authzToken, String appModuleId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<String> getAppModuleDeployedResources(AuthzToken authzToken, String appModuleId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             // TODO: restrict to only application deployments that are accessible to user
@@ -2935,19 +3230,21 @@ public class AiravataServerHandler implements Airavata.Iface {
     @SecurityCheck
     public List<ApplicationDeploymentDescription> getApplicationDeploymentsForAppModuleAndGroupResourceProfile(
             AuthzToken authzToken, String appModuleId, String groupResourceProfileId)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         String userName = authzToken.getClaimsMap().get(Constants.USER_NAME);
         String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
         try {
             // Get list of compute resources for this Group Resource Profile
-            if (!userHasAccessInternal(sharingClient, authzToken, groupResourceProfileId, ResourcePermissionType.READ)) {
-                throw new AuthorizationException("User is not authorized to access Group Resource Profile " + groupResourceProfileId);
+            if (!userHasAccessInternal(
+                    sharingClient, authzToken, groupResourceProfileId, ResourcePermissionType.READ)) {
+                throw new AuthorizationException(
+                        "User is not authorized to access Group Resource Profile " + groupResourceProfileId);
             }
             GroupResourceProfile groupResourceProfile = regClient.getGroupResourceProfile(groupResourceProfileId);
-            List<String> accessibleComputeResourceIds = groupResourceProfile.getComputePreferences()
-                    .stream()
+            List<String> accessibleComputeResourceIds = groupResourceProfile.getComputePreferences().stream()
                     .map(compPref -> compPref.getComputeResourceId())
                     .collect(Collectors.toList());
 
@@ -2964,7 +3261,8 @@ public class AiravataServerHandler implements Airavata.Iface {
             permissionTypeFilter.setSearchCondition(SearchCondition.EQUAL);
             permissionTypeFilter.setValue(gatewayId + ":" + ResourcePermissionType.READ);
             sharingFilters.add(permissionTypeFilter);
-            sharingClient.searchEntities(gatewayId, userName + "@" + gatewayId, sharingFilters, 0, -1)
+            sharingClient
+                    .searchEntities(gatewayId, userName + "@" + gatewayId, sharingFilters, 0, -1)
                     .forEach(a -> accessibleAppDeploymentIds.add(a.getEntityId()));
 
             List<ApplicationDeploymentDescription> result = regClient.getAccessibleApplicationDeploymentsForAppModule(
@@ -2996,9 +3294,10 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public String registerApplicationInterface(AuthzToken authzToken, String gatewayId,
-                                               ApplicationInterfaceDescription applicationInterface) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String registerApplicationInterface(
+            AuthzToken authzToken, String gatewayId, ApplicationInterfaceDescription applicationInterface)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             String result = regClient.registerApplicationInterface(gatewayId, applicationInterface);
@@ -3016,20 +3315,25 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public String cloneApplicationInterface(AuthzToken authzToken, String existingAppInterfaceID, String newApplicationName, String gatewayId)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String cloneApplicationInterface(
+            AuthzToken authzToken, String existingAppInterfaceID, String newApplicationName, String gatewayId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
-            ApplicationInterfaceDescription existingInterface = regClient.getApplicationInterface(existingAppInterfaceID);
-            if (existingInterface == null){
-                logger.error("Provided application interface does not exist.Please provide a valid application interface id...");
+            ApplicationInterfaceDescription existingInterface =
+                    regClient.getApplicationInterface(existingAppInterfaceID);
+            if (existingInterface == null) {
+                logger.error(
+                        "Provided application interface does not exist.Please provide a valid application interface id...");
                 throw new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
             }
 
             existingInterface.setApplicationName(newApplicationName);
             existingInterface.setApplicationInterfaceId(airavata_commonsConstants.DEFAULT_ID);
             String interfaceId = regClient.registerApplicationInterface(gatewayId, existingInterface);
-            logger.debug("Airavata cloned application interface : " + existingAppInterfaceID + " for gateway id : " + gatewayId );
+            logger.debug("Airavata cloned application interface : " + existingAppInterfaceID + " for gateway id : "
+                    + gatewayId);
             registryClientPool.returnResource(regClient);
             return interfaceId;
         } catch (Exception e) {
@@ -3052,7 +3356,8 @@ public class AiravataServerHandler implements Airavata.Iface {
     @Override
     @SecurityCheck
     public ApplicationInterfaceDescription getApplicationInterface(AuthzToken authzToken, String appInterfaceId)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             ApplicationInterfaceDescription result = regClient.getApplicationInterface(appInterfaceId);
@@ -3078,9 +3383,10 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean updateApplicationInterface(AuthzToken authzToken, String appInterfaceId,
-                                              ApplicationInterfaceDescription applicationInterface) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateApplicationInterface(
+            AuthzToken authzToken, String appInterfaceId, ApplicationInterfaceDescription applicationInterface)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.updateApplicationInterface(appInterfaceId, applicationInterface);
@@ -3105,8 +3411,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean deleteApplicationInterface(AuthzToken authzToken, String appInterfaceId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean deleteApplicationInterface(AuthzToken authzToken, String appInterfaceId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.deleteApplicationInterface(appInterfaceId);
@@ -3130,8 +3437,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public Map<String, String> getAllApplicationInterfaceNames(AuthzToken authzToken, String gatewayId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public Map<String, String> getAllApplicationInterfaceNames(AuthzToken authzToken, String gatewayId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             Map<String, String> result = regClient.getAllApplicationInterfaceNames(gatewayId);
@@ -3156,7 +3464,8 @@ public class AiravataServerHandler implements Airavata.Iface {
     @Override
     @SecurityCheck
     public List<ApplicationInterfaceDescription> getAllApplicationInterfaces(AuthzToken authzToken, String gatewayId)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             List<ApplicationInterfaceDescription> result = regClient.getAllApplicationInterfaces(gatewayId);
@@ -3181,8 +3490,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public List<InputDataObjectType> getApplicationInputs(AuthzToken authzToken, String appInterfaceId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<InputDataObjectType> getApplicationInputs(AuthzToken authzToken, String appInterfaceId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             List<InputDataObjectType> result = regClient.getApplicationInputs(appInterfaceId);
@@ -3207,8 +3517,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public List<OutputDataObjectType> getApplicationOutputs(AuthzToken authzToken, String appInterfaceId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<OutputDataObjectType> getApplicationOutputs(AuthzToken authzToken, String appInterfaceId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             List<OutputDataObjectType> result = regClient.getApplicationOutputs(appInterfaceId);
@@ -3222,7 +3533,6 @@ public class AiravataServerHandler implements Airavata.Iface {
         }
     }
 
-
     /**
      * Fetch a list of all deployed Compute Hosts for a given application interfaces.
      *
@@ -3235,7 +3545,8 @@ public class AiravataServerHandler implements Airavata.Iface {
     @SecurityCheck
     @Deprecated
     public Map<String, String> getAvailableAppInterfaceComputeResources(AuthzToken authzToken, String appInterfaceId)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             Map<String, String> result = regClient.getAvailableAppInterfaceComputeResources(appInterfaceId);
@@ -3261,7 +3572,8 @@ public class AiravataServerHandler implements Airavata.Iface {
     @Override
     @SecurityCheck
     public String registerComputeResource(AuthzToken authzToken, ComputeResourceDescription computeResourceDescription)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             String result = regClient.registerComputeResource(computeResourceDescription);
@@ -3287,7 +3599,8 @@ public class AiravataServerHandler implements Airavata.Iface {
     @Override
     @SecurityCheck
     public ComputeResourceDescription getComputeResource(AuthzToken authzToken, String computeResourceId)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             ComputeResourceDescription result = regClient.getComputeResource(computeResourceId);
@@ -3311,8 +3624,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public Map<String, String> getAllComputeResourceNames(AuthzToken authzToken) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public Map<String, String> getAllComputeResourceNames(AuthzToken authzToken)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             Map<String, String> result = regClient.getAllComputeResourceNames();
@@ -3338,8 +3652,10 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean updateComputeResource(AuthzToken authzToken, String computeResourceId, ComputeResourceDescription computeResourceDescription)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateComputeResource(
+            AuthzToken authzToken, String computeResourceId, ComputeResourceDescription computeResourceDescription)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.updateComputeResource(computeResourceId, computeResourceDescription);
@@ -3364,8 +3680,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean deleteComputeResource(AuthzToken authzToken, String computeResourceId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean deleteComputeResource(AuthzToken authzToken, String computeResourceId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.deleteComputeResource(computeResourceId);
@@ -3392,7 +3709,8 @@ public class AiravataServerHandler implements Airavata.Iface {
     @Override
     @SecurityCheck
     public String registerStorageResource(AuthzToken authzToken, StorageResourceDescription storageResourceDescription)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             String result = regClient.registerStorageResource(storageResourceDescription);
@@ -3418,7 +3736,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public StorageResourceDescription getStorageResource(AuthzToken authzToken, String storageResourceId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public StorageResourceDescription getStorageResource(AuthzToken authzToken, String storageResourceId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             StorageResourceDescription result = regClient.getStorageResource(storageResourceId);
@@ -3443,7 +3763,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public Map<String, String> getAllStorageResourceNames(AuthzToken authzToken) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public Map<String, String> getAllStorageResourceNames(AuthzToken authzToken)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             Map<String, String> result = regClient.getAllStorageResourceNames();
@@ -3470,7 +3792,10 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean updateStorageResource(AuthzToken authzToken, String storageResourceId, StorageResourceDescription storageResourceDescription) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateStorageResource(
+            AuthzToken authzToken, String storageResourceId, StorageResourceDescription storageResourceDescription)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.updateStorageResource(storageResourceId, storageResourceDescription);
@@ -3496,7 +3821,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean deleteStorageResource(AuthzToken authzToken, String storageResourceId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean deleteStorageResource(AuthzToken authzToken, String storageResourceId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.deleteStorageResource(storageResourceId);
@@ -3524,18 +3851,25 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public String addLocalSubmissionDetails(AuthzToken authzToken, String computeResourceId, int priorityOrder, LOCALSubmission localSubmission)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String addLocalSubmissionDetails(
+            AuthzToken authzToken, String computeResourceId, int priorityOrder, LOCALSubmission localSubmission)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             String result = regClient.addLocalSubmissionDetails(computeResourceId, priorityOrder, localSubmission);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
-            logger.error(computeResourceId, "Error while adding job submission interface to resource compute resource...", e);
+            logger.error(
+                    computeResourceId,
+                    "Error while adding job submission interface to resource compute resource...",
+                    e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while adding job submission interface to resource compute resource. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while adding job submission interface to resource compute resource. More info : "
+                            + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -3551,18 +3885,25 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean updateLocalSubmissionDetails(AuthzToken authzToken, String jobSubmissionInterfaceId, LOCALSubmission localSubmission)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateLocalSubmissionDetails(
+            AuthzToken authzToken, String jobSubmissionInterfaceId, LOCALSubmission localSubmission)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.updateLocalSubmissionDetails(jobSubmissionInterfaceId, localSubmission);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
-            logger.error(jobSubmissionInterfaceId, "Error while adding job submission interface to resource compute resource...", e);
+            logger.error(
+                    jobSubmissionInterfaceId,
+                    "Error while adding job submission interface to resource compute resource...",
+                    e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while adding job submission interface to resource compute resource. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while adding job submission interface to resource compute resource. More info : "
+                            + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -3570,8 +3911,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public LOCALSubmission getLocalJobSubmission(AuthzToken authzToken, String jobSubmissionId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public LOCALSubmission getLocalJobSubmission(AuthzToken authzToken, String jobSubmissionId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             LOCALSubmission result = regClient.getLocalJobSubmission(jobSubmissionId);
@@ -3600,18 +3942,25 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public String addSSHJobSubmissionDetails(AuthzToken authzToken, String computeResourceId, int priorityOrder, SSHJobSubmission sshJobSubmission)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String addSSHJobSubmissionDetails(
+            AuthzToken authzToken, String computeResourceId, int priorityOrder, SSHJobSubmission sshJobSubmission)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             String result = regClient.addSSHJobSubmissionDetails(computeResourceId, priorityOrder, sshJobSubmission);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
-            logger.error(computeResourceId, "Error while adding job submission interface to resource compute resource...", e);
+            logger.error(
+                    computeResourceId,
+                    "Error while adding job submission interface to resource compute resource...",
+                    e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while adding job submission interface to resource compute resource. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while adding job submission interface to resource compute resource. More info : "
+                            + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -3629,18 +3978,26 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public String addSSHForkJobSubmissionDetails(AuthzToken authzToken, String computeResourceId, int priorityOrder, SSHJobSubmission sshJobSubmission)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String addSSHForkJobSubmissionDetails(
+            AuthzToken authzToken, String computeResourceId, int priorityOrder, SSHJobSubmission sshJobSubmission)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
-            String result = regClient.addSSHForkJobSubmissionDetails(computeResourceId, priorityOrder, sshJobSubmission);
+            String result =
+                    regClient.addSSHForkJobSubmissionDetails(computeResourceId, priorityOrder, sshJobSubmission);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
-            logger.error(computeResourceId, "Error while adding job submission interface to resource compute resource...", e);
+            logger.error(
+                    computeResourceId,
+                    "Error while adding job submission interface to resource compute resource...",
+                    e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while adding job submission interface to resource compute resource. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while adding job submission interface to resource compute resource. More info : "
+                            + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -3648,8 +4005,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public SSHJobSubmission getSSHJobSubmission(AuthzToken authzToken, String jobSubmissionId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public SSHJobSubmission getSSHJobSubmission(AuthzToken authzToken, String jobSubmissionId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             SSHJobSubmission result = regClient.getSSHJobSubmission(jobSubmissionId);
@@ -3678,19 +4036,26 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public String addCloudJobSubmissionDetails(AuthzToken authzToken, String computeResourceId, int priorityOrder,
-                                               CloudJobSubmission cloudJobSubmission) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String addCloudJobSubmissionDetails(
+            AuthzToken authzToken, String computeResourceId, int priorityOrder, CloudJobSubmission cloudJobSubmission)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
-            String result = regClient.addCloudJobSubmissionDetails(computeResourceId, priorityOrder, cloudJobSubmission);
+            String result =
+                    regClient.addCloudJobSubmissionDetails(computeResourceId, priorityOrder, cloudJobSubmission);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
-            logger.error(computeResourceId, "Error while adding job submission interface to resource compute resource...", e);
+            logger.error(
+                    computeResourceId,
+                    "Error while adding job submission interface to resource compute resource...",
+                    e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while adding job submission interface to resource compute resource. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while adding job submission interface to resource compute resource. More info : "
+                            + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -3698,8 +4063,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public CloudJobSubmission getCloudJobSubmission(AuthzToken authzToken, String jobSubmissionId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public CloudJobSubmission getCloudJobSubmission(AuthzToken authzToken, String jobSubmissionId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             CloudJobSubmission result = regClient.getCloudJobSubmission(jobSubmissionId);
@@ -3718,19 +4084,26 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public String addUNICOREJobSubmissionDetails(AuthzToken authzToken, String computeResourceId, int priorityOrder,
-                                                 UnicoreJobSubmission unicoreJobSubmission)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String addUNICOREJobSubmissionDetails(
+            AuthzToken authzToken,
+            String computeResourceId,
+            int priorityOrder,
+            UnicoreJobSubmission unicoreJobSubmission)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
-            String result = regClient.addUNICOREJobSubmissionDetails(computeResourceId, priorityOrder, unicoreJobSubmission);
+            String result =
+                    regClient.addUNICOREJobSubmissionDetails(computeResourceId, priorityOrder, unicoreJobSubmission);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
             logger.error("Error while adding job submission interface to resource compute resource...", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while adding job submission interface to resource compute resource. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while adding job submission interface to resource compute resource. More info : "
+                            + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -3739,7 +4112,8 @@ public class AiravataServerHandler implements Airavata.Iface {
     @Override
     @SecurityCheck
     public UnicoreJobSubmission getUnicoreJobSubmission(AuthzToken authzToken, String jobSubmissionId)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             UnicoreJobSubmission result = regClient.getUnicoreJobSubmission(jobSubmissionId);
@@ -3766,18 +4140,25 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean updateSSHJobSubmissionDetails(AuthzToken authzToken, String jobSubmissionInterfaceId, SSHJobSubmission sshJobSubmission)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateSSHJobSubmissionDetails(
+            AuthzToken authzToken, String jobSubmissionInterfaceId, SSHJobSubmission sshJobSubmission)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.updateSSHJobSubmissionDetails(jobSubmissionInterfaceId, sshJobSubmission);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
-            logger.error(jobSubmissionInterfaceId, "Error while adding job submission interface to resource compute resource...", e);
+            logger.error(
+                    jobSubmissionInterfaceId,
+                    "Error while adding job submission interface to resource compute resource...",
+                    e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while adding job submission interface to resource compute resource. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while adding job submission interface to resource compute resource. More info : "
+                            + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -3793,18 +4174,25 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean updateCloudJobSubmissionDetails(AuthzToken authzToken, String jobSubmissionInterfaceId, CloudJobSubmission cloudJobSubmission)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateCloudJobSubmissionDetails(
+            AuthzToken authzToken, String jobSubmissionInterfaceId, CloudJobSubmission cloudJobSubmission)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.updateCloudJobSubmissionDetails(jobSubmissionInterfaceId, cloudJobSubmission);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
-            logger.error(jobSubmissionInterfaceId, "Error while adding job submission interface to resource compute resource...", e);
+            logger.error(
+                    jobSubmissionInterfaceId,
+                    "Error while adding job submission interface to resource compute resource...",
+                    e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while adding job submission interface to resource compute resource. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while adding job submission interface to resource compute resource. More info : "
+                            + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -3812,18 +4200,26 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean updateUnicoreJobSubmissionDetails(AuthzToken authzToken, String jobSubmissionInterfaceId, UnicoreJobSubmission unicoreJobSubmission)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateUnicoreJobSubmissionDetails(
+            AuthzToken authzToken, String jobSubmissionInterfaceId, UnicoreJobSubmission unicoreJobSubmission)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
-            boolean result = regClient.updateUnicoreJobSubmissionDetails(jobSubmissionInterfaceId, unicoreJobSubmission);
+            boolean result =
+                    regClient.updateUnicoreJobSubmissionDetails(jobSubmissionInterfaceId, unicoreJobSubmission);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
-            logger.error(jobSubmissionInterfaceId, "Error while adding job submission interface to resource compute resource...", e);
+            logger.error(
+                    jobSubmissionInterfaceId,
+                    "Error while adding job submission interface to resource compute resource...",
+                    e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while adding job submission interface to resource compute resource. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while adding job submission interface to resource compute resource. More info : "
+                            + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -3841,9 +4237,14 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public String addLocalDataMovementDetails(AuthzToken authzToken, String resourceId, DMType dmType, int priorityOrder,
-                                              LOCALDataMovement localDataMovement) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String addLocalDataMovementDetails(
+            AuthzToken authzToken,
+            String resourceId,
+            DMType dmType,
+            int priorityOrder,
+            LOCALDataMovement localDataMovement)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             String result = regClient.addLocalDataMovementDetails(resourceId, dmType, priorityOrder, localDataMovement);
@@ -3853,7 +4254,8 @@ public class AiravataServerHandler implements Airavata.Iface {
             logger.error(resourceId, "Error while adding data movement interface to resource resource...", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while adding data movement interface to resource. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while adding data movement interface to resource. More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -3869,8 +4271,10 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean updateLocalDataMovementDetails(AuthzToken authzToken, String dataMovementInterfaceId, LOCALDataMovement localDataMovement)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateLocalDataMovementDetails(
+            AuthzToken authzToken, String dataMovementInterfaceId, LOCALDataMovement localDataMovement)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.updateLocalDataMovementDetails(dataMovementInterfaceId, localDataMovement);
@@ -3888,8 +4292,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public LOCALDataMovement getLocalDataMovement(AuthzToken authzToken, String dataMovementId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public LOCALDataMovement getLocalDataMovement(AuthzToken authzToken, String dataMovementId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             LOCALDataMovement result = regClient.getLocalDataMovement(dataMovementId);
@@ -3906,7 +4311,6 @@ public class AiravataServerHandler implements Airavata.Iface {
         }
     }
 
-
     /**
      * Add a SCP data moevement details to a compute resource
      * App catalog will return a dataMovementInterfaceId which will be added to the dataMovementInterfaces.
@@ -3919,8 +4323,10 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public String addSCPDataMovementDetails(AuthzToken authzToken, String resourceId, DMType dmType, int priorityOrder, SCPDataMovement scpDataMovement)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String addSCPDataMovementDetails(
+            AuthzToken authzToken, String resourceId, DMType dmType, int priorityOrder, SCPDataMovement scpDataMovement)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             String result = regClient.addSCPDataMovementDetails(resourceId, dmType, priorityOrder, scpDataMovement);
@@ -3930,7 +4336,8 @@ public class AiravataServerHandler implements Airavata.Iface {
             logger.error(resourceId, "Error while adding data movement interface to resource compute resource...", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while adding data movement interface to resource compute resource. More info : " + e.getMessage());
+            exception.setMessage("Error while adding data movement interface to resource compute resource. More info : "
+                    + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -3947,18 +4354,25 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean updateSCPDataMovementDetails(AuthzToken authzToken, String dataMovementInterfaceId, SCPDataMovement scpDataMovement)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateSCPDataMovementDetails(
+            AuthzToken authzToken, String dataMovementInterfaceId, SCPDataMovement scpDataMovement)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.updateSCPDataMovementDetails(dataMovementInterfaceId, scpDataMovement);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
-            logger.error(dataMovementInterfaceId, "Error while adding job submission interface to resource compute resource...", e);
+            logger.error(
+                    dataMovementInterfaceId,
+                    "Error while adding job submission interface to resource compute resource...",
+                    e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while adding job submission interface to resource compute resource. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while adding job submission interface to resource compute resource. More info : "
+                            + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -3966,8 +4380,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public SCPDataMovement getSCPDataMovement(AuthzToken authzToken, String dataMovementId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public SCPDataMovement getSCPDataMovement(AuthzToken authzToken, String dataMovementId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             SCPDataMovement result = regClient.getSCPDataMovement(dataMovementId);
@@ -3986,18 +4401,26 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public String addUnicoreDataMovementDetails(AuthzToken authzToken, String resourceId, DMType dmType, int priorityOrder, UnicoreDataMovement unicoreDataMovement)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String addUnicoreDataMovementDetails(
+            AuthzToken authzToken,
+            String resourceId,
+            DMType dmType,
+            int priorityOrder,
+            UnicoreDataMovement unicoreDataMovement)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
-            String result = regClient.addUnicoreDataMovementDetails(resourceId, dmType, priorityOrder, unicoreDataMovement);
+            String result =
+                    regClient.addUnicoreDataMovementDetails(resourceId, dmType, priorityOrder, unicoreDataMovement);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
             logger.error(resourceId, "Error while adding data movement interface to resource compute resource...", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while adding data movement interface to resource compute resource. More info : " + e.getMessage());
+            exception.setMessage("Error while adding data movement interface to resource compute resource. More info : "
+                    + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -4005,18 +4428,22 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean updateUnicoreDataMovementDetails(AuthzToken authzToken, String dataMovementInterfaceId, UnicoreDataMovement unicoreDataMovement)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateUnicoreDataMovementDetails(
+            AuthzToken authzToken, String dataMovementInterfaceId, UnicoreDataMovement unicoreDataMovement)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.updateUnicoreDataMovementDetails(dataMovementInterfaceId, unicoreDataMovement);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
-            logger.error(dataMovementInterfaceId, "Error while updating unicore data movement to compute resource...", e);
+            logger.error(
+                    dataMovementInterfaceId, "Error while updating unicore data movement to compute resource...", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while updating unicore data movement to compute resource. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while updating unicore data movement to compute resource. More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -4024,8 +4451,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public UnicoreDataMovement getUnicoreDataMovement(AuthzToken authzToken, String dataMovementId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public UnicoreDataMovement getUnicoreDataMovement(AuthzToken authzToken, String dataMovementId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             UnicoreDataMovement result = regClient.getUnicoreDataMovement(dataMovementId);
@@ -4054,19 +4482,27 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public String addGridFTPDataMovementDetails(AuthzToken authzToken, String computeResourceId, DMType dmType, int priorityOrder,
-                                                GridFTPDataMovement gridFTPDataMovement) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String addGridFTPDataMovementDetails(
+            AuthzToken authzToken,
+            String computeResourceId,
+            DMType dmType,
+            int priorityOrder,
+            GridFTPDataMovement gridFTPDataMovement)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
-            String result = regClient.addGridFTPDataMovementDetails(computeResourceId, dmType, priorityOrder, gridFTPDataMovement);
+            String result = regClient.addGridFTPDataMovementDetails(
+                    computeResourceId, dmType, priorityOrder, gridFTPDataMovement);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
-            logger.error(computeResourceId, "Error while adding data movement interface to resource compute resource...", e);
+            logger.error(
+                    computeResourceId, "Error while adding data movement interface to resource compute resource...", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while adding data movement interface to resource compute resource. More info : " + e.getMessage());
+            exception.setMessage("Error while adding data movement interface to resource compute resource. More info : "
+                    + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -4083,18 +4519,25 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean updateGridFTPDataMovementDetails(AuthzToken authzToken, String dataMovementInterfaceId, GridFTPDataMovement gridFTPDataMovement)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateGridFTPDataMovementDetails(
+            AuthzToken authzToken, String dataMovementInterfaceId, GridFTPDataMovement gridFTPDataMovement)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.updateGridFTPDataMovementDetails(dataMovementInterfaceId, gridFTPDataMovement);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
-            logger.error(dataMovementInterfaceId, "Error while adding job submission interface to resource compute resource...", e);
+            logger.error(
+                    dataMovementInterfaceId,
+                    "Error while adding job submission interface to resource compute resource...",
+                    e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while adding job submission interface to resource compute resource. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while adding job submission interface to resource compute resource. More info : "
+                            + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -4102,8 +4545,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public GridFTPDataMovement getGridFTPDataMovement(AuthzToken authzToken, String dataMovementId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public GridFTPDataMovement getGridFTPDataMovement(AuthzToken authzToken, String dataMovementId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             GridFTPDataMovement result = regClient.getGridFTPDataMovement(dataMovementId);
@@ -4130,8 +4574,10 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean changeJobSubmissionPriority(AuthzToken authzToken, String jobSubmissionInterfaceId, int newPriorityOrder) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean changeJobSubmissionPriority(
+            AuthzToken authzToken, String jobSubmissionInterfaceId, int newPriorityOrder)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         return false;
     }
 
@@ -4145,8 +4591,10 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean changeDataMovementPriority(AuthzToken authzToken, String dataMovementInterfaceId, int newPriorityOrder)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean changeDataMovementPriority(
+            AuthzToken authzToken, String dataMovementInterfaceId, int newPriorityOrder)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         return false;
     }
 
@@ -4160,7 +4608,8 @@ public class AiravataServerHandler implements Airavata.Iface {
     @Override
     @SecurityCheck
     public boolean changeJobSubmissionPriorities(AuthzToken authzToken, Map<String, Integer> jobSubmissionPriorityMap)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         return false;
     }
 
@@ -4174,7 +4623,8 @@ public class AiravataServerHandler implements Airavata.Iface {
     @Override
     @SecurityCheck
     public boolean changeDataMovementPriorities(AuthzToken authzToken, Map<String, Integer> dataMovementPriorityMap)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         return false;
     }
 
@@ -4187,8 +4637,10 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean deleteJobSubmissionInterface(AuthzToken authzToken, String computeResourceId, String jobSubmissionInterfaceId)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean deleteJobSubmissionInterface(
+            AuthzToken authzToken, String computeResourceId, String jobSubmissionInterfaceId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.deleteJobSubmissionInterface(computeResourceId, jobSubmissionInterfaceId);
@@ -4213,8 +4665,10 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean deleteDataMovementInterface(AuthzToken authzToken, String resourceId, String dataMovementInterfaceId, DMType dmType)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean deleteDataMovementInterface(
+            AuthzToken authzToken, String resourceId, String dataMovementInterfaceId, DMType dmType)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.deleteDataMovementInterface(resourceId, dataMovementInterfaceId, dmType);
@@ -4232,8 +4686,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public String registerResourceJobManager(AuthzToken authzToken, ResourceJobManager resourceJobManager) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String registerResourceJobManager(AuthzToken authzToken, ResourceJobManager resourceJobManager)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             String result = regClient.registerResourceJobManager(resourceJobManager);
@@ -4251,8 +4706,10 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean updateResourceJobManager(AuthzToken authzToken, String resourceJobManagerId, ResourceJobManager updatedResourceJobManager)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateResourceJobManager(
+            AuthzToken authzToken, String resourceJobManagerId, ResourceJobManager updatedResourceJobManager)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.updateResourceJobManager(resourceJobManagerId, updatedResourceJobManager);
@@ -4270,8 +4727,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public ResourceJobManager getResourceJobManager(AuthzToken authzToken,String resourceJobManagerId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public ResourceJobManager getResourceJobManager(AuthzToken authzToken, String resourceJobManagerId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             ResourceJobManager result = regClient.getResourceJobManager(resourceJobManagerId);
@@ -4289,8 +4747,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean deleteResourceJobManager(AuthzToken authzToken, String resourceJobManagerId) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean deleteResourceJobManager(AuthzToken authzToken, String resourceJobManagerId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.deleteResourceJobManager(resourceJobManagerId);
@@ -4308,8 +4767,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean deleteBatchQueue(AuthzToken authzToken, String computeResourceId, String queueName) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean deleteBatchQueue(AuthzToken authzToken, String computeResourceId, String queueName)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.deleteBatchQueue(computeResourceId, queueName);
@@ -4337,7 +4797,8 @@ public class AiravataServerHandler implements Airavata.Iface {
     @Override
     @SecurityCheck
     public String registerGatewayResourceProfile(AuthzToken authzToken, GatewayResourceProfile gatewayResourceProfile)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             String result = regClient.registerGatewayResourceProfile(gatewayResourceProfile);
@@ -4362,8 +4823,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public GatewayResourceProfile getGatewayResourceProfile(AuthzToken authzToken, String gatewayID) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public GatewayResourceProfile getGatewayResourceProfile(AuthzToken authzToken, String gatewayID)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             GatewayResourceProfile result = regClient.getGatewayResourceProfile(gatewayID);
@@ -4389,9 +4851,8 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean updateGatewayResourceProfile(AuthzToken authzToken,
-                                                String gatewayID,
-                                                GatewayResourceProfile gatewayResourceProfile) throws TException {
+    public boolean updateGatewayResourceProfile(
+            AuthzToken authzToken, String gatewayID, GatewayResourceProfile gatewayResourceProfile) throws TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.updateGatewayResourceProfile(gatewayID, gatewayResourceProfile);
@@ -4444,19 +4905,25 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean addGatewayComputeResourcePreference(AuthzToken authzToken, String gatewayID, String computeResourceId,
-                                                       ComputeResourcePreference computeResourcePreference) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean addGatewayComputeResourcePreference(
+            AuthzToken authzToken,
+            String gatewayID,
+            String computeResourceId,
+            ComputeResourcePreference computeResourcePreference)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
-            boolean result = regClient.addGatewayComputeResourcePreference(gatewayID, computeResourceId, computeResourcePreference);
+            boolean result = regClient.addGatewayComputeResourcePreference(
+                    gatewayID, computeResourceId, computeResourcePreference);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
             logger.error(gatewayID, "Error while registering gateway resource profile preference...", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while registering gateway resource profile preference. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while registering gateway resource profile preference. More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -4464,8 +4931,10 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean addGatewayStoragePreference(AuthzToken authzToken, String gatewayID, String storageResourceId, StoragePreference dataStoragePreference)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean addGatewayStoragePreference(
+            AuthzToken authzToken, String gatewayID, String storageResourceId, StoragePreference dataStoragePreference)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.addGatewayStoragePreference(gatewayID, storageResourceId, dataStoragePreference);
@@ -4475,7 +4944,8 @@ public class AiravataServerHandler implements Airavata.Iface {
             logger.error(gatewayID, "Error while registering gateway resource profile preference...", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while registering gateway resource profile preference. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while registering gateway resource profile preference. More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -4491,18 +4961,22 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public ComputeResourcePreference getGatewayComputeResourcePreference(AuthzToken authzToken, String gatewayID, String computeResourceId)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public ComputeResourcePreference getGatewayComputeResourcePreference(
+            AuthzToken authzToken, String gatewayID, String computeResourceId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
-            ComputeResourcePreference result = regClient.getGatewayComputeResourcePreference(gatewayID, computeResourceId);
+            ComputeResourcePreference result =
+                    regClient.getGatewayComputeResourcePreference(gatewayID, computeResourceId);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
             logger.error(gatewayID, "Error while reading gateway compute resource preference...", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while reading gateway compute resource preference. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while reading gateway compute resource preference. More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -4510,7 +4984,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public StoragePreference getGatewayStoragePreference(AuthzToken authzToken, String gatewayID, String storageId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public StoragePreference getGatewayStoragePreference(AuthzToken authzToken, String gatewayID, String storageId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             StoragePreference result = regClient.getGatewayStoragePreference(gatewayID, storageId);
@@ -4535,8 +5011,10 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public List<ComputeResourcePreference> getAllGatewayComputeResourcePreferences(AuthzToken authzToken, String gatewayID)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<ComputeResourcePreference> getAllGatewayComputeResourcePreferences(
+            AuthzToken authzToken, String gatewayID)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             List<ComputeResourcePreference> result = regClient.getAllGatewayComputeResourcePreferences(gatewayID);
@@ -4546,7 +5024,8 @@ public class AiravataServerHandler implements Airavata.Iface {
             logger.error(gatewayID, "Error while reading gateway compute resource preferences...", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while reading gateway compute resource preferences. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while reading gateway compute resource preferences. More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -4554,7 +5033,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<StoragePreference> getAllGatewayStoragePreferences(AuthzToken authzToken, String gatewayID) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<StoragePreference> getAllGatewayStoragePreferences(AuthzToken authzToken, String gatewayID)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             List<StoragePreference> result = regClient.getAllGatewayStoragePreferences(gatewayID);
@@ -4572,8 +5053,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<GatewayResourceProfile> getAllGatewayResourceProfiles(AuthzToken authzToken) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<GatewayResourceProfile> getAllGatewayResourceProfiles(AuthzToken authzToken)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             List<GatewayResourceProfile> result = regClient.getAllGatewayResourceProfiles();
@@ -4599,19 +5081,25 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean updateGatewayComputeResourcePreference(AuthzToken authzToken, String gatewayID, String computeResourceId,
-                                                          ComputeResourcePreference computeResourcePreference)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateGatewayComputeResourcePreference(
+            AuthzToken authzToken,
+            String gatewayID,
+            String computeResourceId,
+            ComputeResourcePreference computeResourcePreference)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
-            boolean result = regClient.updateGatewayComputeResourcePreference(gatewayID, computeResourceId, computeResourcePreference);
+            boolean result = regClient.updateGatewayComputeResourcePreference(
+                    gatewayID, computeResourceId, computeResourcePreference);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
             logger.error(gatewayID, "Error while reading gateway compute resource preference...", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while updating gateway compute resource preference. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while updating gateway compute resource preference. More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -4619,7 +5107,10 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean updateGatewayStoragePreference(AuthzToken authzToken, String gatewayID, String storageId, StoragePreference dataStoragePreference) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateGatewayStoragePreference(
+            AuthzToken authzToken, String gatewayID, String storageId, StoragePreference dataStoragePreference)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.updateGatewayStoragePreference(gatewayID, storageId, dataStoragePreference);
@@ -4645,8 +5136,10 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean deleteGatewayComputeResourcePreference(AuthzToken authzToken, String gatewayID, String computeResourceId)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean deleteGatewayComputeResourcePreference(
+            AuthzToken authzToken, String gatewayID, String computeResourceId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.deleteGatewayComputeResourcePreference(gatewayID, computeResourceId);
@@ -4656,7 +5149,8 @@ public class AiravataServerHandler implements Airavata.Iface {
             logger.error(gatewayID, "Error while reading gateway compute resource preference...", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while updating gateway compute resource preference. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while updating gateway compute resource preference. More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -4664,7 +5158,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean deleteGatewayStoragePreference(AuthzToken authzToken, String gatewayID, String storageId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean deleteGatewayStoragePreference(AuthzToken authzToken, String gatewayID, String storageId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.deleteGatewayStoragePreference(gatewayID, storageId);
@@ -4682,10 +5178,13 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<SSHAccountProvisioner> getSSHAccountProvisioners(AuthzToken authzToken) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<SSHAccountProvisioner> getSSHAccountProvisioners(AuthzToken authzToken)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
 
         List<SSHAccountProvisioner> sshAccountProvisioners = new ArrayList<>();
-        List<SSHAccountProvisionerProvider> sshAccountProvisionerProviders = SSHAccountProvisionerFactory.getSSHAccountProvisionerProviders();
+        List<SSHAccountProvisionerProvider> sshAccountProvisionerProviders =
+                SSHAccountProvisionerFactory.getSSHAccountProvisionerProviders();
         for (SSHAccountProvisionerProvider provider : sshAccountProvisionerProviders) {
             // TODO: Move this Thrift conversion to utility class
             SSHAccountProvisioner sshAccountProvisioner = new SSHAccountProvisioner();
@@ -4694,16 +5193,18 @@ public class AiravataServerHandler implements Airavata.Iface {
             sshAccountProvisioner.setName(provider.getName());
             List<SSHAccountProvisionerConfigParam> sshAccountProvisionerConfigParams = new ArrayList<>();
             for (ConfigParam configParam : provider.getConfigParams()) {
-                SSHAccountProvisionerConfigParam sshAccountProvisionerConfigParam = new SSHAccountProvisionerConfigParam();
+                SSHAccountProvisionerConfigParam sshAccountProvisionerConfigParam =
+                        new SSHAccountProvisionerConfigParam();
                 sshAccountProvisionerConfigParam.setName(configParam.getName());
                 sshAccountProvisionerConfigParam.setDescription(configParam.getDescription());
                 sshAccountProvisionerConfigParam.setIsOptional(configParam.isOptional());
-                switch (configParam.getType()){
+                switch (configParam.getType()) {
                     case STRING:
                         sshAccountProvisionerConfigParam.setType(SSHAccountProvisionerConfigParamType.STRING);
                         break;
                     case CRED_STORE_PASSWORD_TOKEN:
-                        sshAccountProvisionerConfigParam.setType(SSHAccountProvisionerConfigParamType.CRED_STORE_PASSWORD_TOKEN);
+                        sshAccountProvisionerConfigParam.setType(
+                                SSHAccountProvisionerConfigParamType.CRED_STORE_PASSWORD_TOKEN);
                         break;
                 }
                 sshAccountProvisionerConfigParams.add(sshAccountProvisionerConfigParam);
@@ -4716,13 +5217,15 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean doesUserHaveSSHAccount(AuthzToken authzToken, String computeResourceId, String userId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean doesUserHaveSSHAccount(AuthzToken authzToken, String computeResourceId, String userId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         try {
             String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
             return SSHAccountManager.doesUserHaveSSHAccount(gatewayId, computeResourceId, userId);
         } catch (Exception e) {
-            String errorMessage = "Error occurred while checking if [" + userId + "] has an SSH Account on [" +
-                    computeResourceId + "].";
+            String errorMessage = "Error occurred while checking if [" + userId + "] has an SSH Account on ["
+                    + computeResourceId + "].";
             logger.error(errorMessage, e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
@@ -4733,7 +5236,10 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean isSSHSetupCompleteForUserComputeResourcePreference(AuthzToken authzToken, String computeResourceId, String airavataCredStoreToken) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean isSSHSetupCompleteForUserComputeResourcePreference(
+            AuthzToken authzToken, String computeResourceId, String airavataCredStoreToken)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
         String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
         CredentialStoreService.Client csClient = csClientPool.getResource();
@@ -4741,7 +5247,7 @@ public class AiravataServerHandler implements Airavata.Iface {
         try {
             sshCredential = csClient.getSSHCredential(airavataCredStoreToken, gatewayId);
             csClientPool.returnResource(csClient);
-        }catch (Exception e){
+        } catch (Exception e) {
             logger.error("Error occurred while retrieving SSH Credential", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
@@ -4752,8 +5258,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
         try {
             return SSHAccountManager.isSSHAccountSetupComplete(gatewayId, computeResourceId, userId, sshCredential);
-        }catch (Exception e){
-            final String msg = "Error occurred while checking if setup of SSH account is complete for user [" + userId + "].";
+        } catch (Exception e) {
+            final String msg =
+                    "Error occurred while checking if setup of SSH account is complete for user [" + userId + "].";
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
@@ -4764,14 +5271,17 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public UserComputeResourcePreference setupUserComputeResourcePreferencesForSSH(AuthzToken authzToken, String computeResourceId, String userId, String airavataCredStoreToken) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public UserComputeResourcePreference setupUserComputeResourcePreferencesForSSH(
+            AuthzToken authzToken, String computeResourceId, String userId, String airavataCredStoreToken)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
         CredentialStoreService.Client csClient = csClientPool.getResource();
         SSHCredential sshCredential = null;
         try {
             sshCredential = csClient.getSSHCredential(airavataCredStoreToken, gatewayId);
             csClientPool.returnResource(csClient);
-        }catch (Exception e){
+        } catch (Exception e) {
             logger.error("Error occurred while retrieving SSH Credential", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
@@ -4781,13 +5291,15 @@ public class AiravataServerHandler implements Airavata.Iface {
         }
 
         try {
-            UserComputeResourcePreference userComputeResourcePreference = SSHAccountManager.setupSSHAccount(gatewayId, computeResourceId, userId, sshCredential);
+            UserComputeResourcePreference userComputeResourcePreference =
+                    SSHAccountManager.setupSSHAccount(gatewayId, computeResourceId, userId, sshCredential);
             return userComputeResourcePreference;
-        }catch (Exception e){
+        } catch (Exception e) {
             logger.error("Error occurred while automatically setting up SSH account for user [" + userId + "]", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error occurred while automatically setting up SSH account for user [" + userId + "]. More info : " + e.getMessage());
+            exception.setMessage("Error occurred while automatically setting up SSH account for user [" + userId
+                    + "]. More info : " + e.getMessage());
             throw exception;
         }
     }
@@ -4804,7 +5316,8 @@ public class AiravataServerHandler implements Airavata.Iface {
     @Override
     @SecurityCheck
     public String registerUserResourceProfile(AuthzToken authzToken, UserResourceProfile userResourceProfile)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             String result = regClient.registerUserResourceProfile(userResourceProfile);
@@ -4822,7 +5335,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean isUserResourceProfileExists(AuthzToken authzToken, String userId, String gatewayID) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean isUserResourceProfileExists(AuthzToken authzToken, String userId, String gatewayID)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.isUserResourceProfileExists(userId, gatewayID);
@@ -4832,7 +5347,8 @@ public class AiravataServerHandler implements Airavata.Iface {
             logger.error("Error while checking existence of user resource profile for " + userId, e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while checking existence of user resource profile. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while checking existence of user resource profile. More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -4850,8 +5366,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public UserResourceProfile getUserResourceProfile(AuthzToken authzToken, String userId, String gatewayID) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public UserResourceProfile getUserResourceProfile(AuthzToken authzToken, String userId, String gatewayID)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             UserResourceProfile result = regClient.getUserResourceProfile(userId, gatewayID);
@@ -4878,10 +5395,9 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean updateUserResourceProfile(AuthzToken authzToken,
-                                             String userId,
-                                             String gatewayID,
-                                             UserResourceProfile userResourceProfile) throws TException {
+    public boolean updateUserResourceProfile(
+            AuthzToken authzToken, String userId, String gatewayID, UserResourceProfile userResourceProfile)
+            throws TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.updateUserResourceProfile(userId, gatewayID, userResourceProfile);
@@ -4936,19 +5452,26 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean addUserComputeResourcePreference(AuthzToken authzToken, String userId, String gatewayID, String userComputeResourceId,
-                                                    UserComputeResourcePreference userComputeResourcePreference) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean addUserComputeResourcePreference(
+            AuthzToken authzToken,
+            String userId,
+            String gatewayID,
+            String userComputeResourceId,
+            UserComputeResourcePreference userComputeResourcePreference)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
-            boolean result = regClient.addUserComputeResourcePreference(userId, gatewayID, userComputeResourceId, userComputeResourcePreference);
+            boolean result = regClient.addUserComputeResourcePreference(
+                    userId, gatewayID, userComputeResourceId, userComputeResourcePreference);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
             logger.error(userId, "Error while registering user resource profile preference...", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while registering user resource profile preference. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while registering user resource profile preference. More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -4956,11 +5479,18 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean addUserStoragePreference(AuthzToken authzToken, String userId, String gatewayID, String userStorageResourceId, UserStoragePreference dataStoragePreference)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean addUserStoragePreference(
+            AuthzToken authzToken,
+            String userId,
+            String gatewayID,
+            String userStorageResourceId,
+            UserStoragePreference dataStoragePreference)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
-            boolean result = regClient.addUserStoragePreference(userId, gatewayID, userStorageResourceId, dataStoragePreference);
+            boolean result =
+                    regClient.addUserStoragePreference(userId, gatewayID, userStorageResourceId, dataStoragePreference);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
@@ -4984,11 +5514,14 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public UserComputeResourcePreference getUserComputeResourcePreference(AuthzToken authzToken, String userId, String gatewayID, String userComputeResourceId)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public UserComputeResourcePreference getUserComputeResourcePreference(
+            AuthzToken authzToken, String userId, String gatewayID, String userComputeResourceId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
-            UserComputeResourcePreference result = regClient.getUserComputeResourcePreference(userId, gatewayID, userComputeResourceId);
+            UserComputeResourcePreference result =
+                    regClient.getUserComputeResourcePreference(userId, gatewayID, userComputeResourceId);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
@@ -5003,7 +5536,10 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public UserStoragePreference getUserStoragePreference(AuthzToken authzToken, String userId, String gatewayID, String userStorageId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public UserStoragePreference getUserStoragePreference(
+            AuthzToken authzToken, String userId, String gatewayID, String userStorageId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             UserStoragePreference result = regClient.getUserStoragePreference(userId, gatewayID, userStorageId);
@@ -5029,18 +5565,22 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public List<UserComputeResourcePreference> getAllUserComputeResourcePreferences(AuthzToken authzToken, String userId, String gatewayID)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<UserComputeResourcePreference> getAllUserComputeResourcePreferences(
+            AuthzToken authzToken, String userId, String gatewayID)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
-            List<UserComputeResourcePreference> result = regClient.getAllUserComputeResourcePreferences(userId, gatewayID);
+            List<UserComputeResourcePreference> result =
+                    regClient.getAllUserComputeResourcePreferences(userId, gatewayID);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
             logger.error(userId, "Error while reading User compute resource preferences...", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while reading User compute resource preferences. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while reading User compute resource preferences. More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -5048,7 +5588,10 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<UserStoragePreference> getAllUserStoragePreferences(AuthzToken authzToken, String userId, String gatewayID) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<UserStoragePreference> getAllUserStoragePreferences(
+            AuthzToken authzToken, String userId, String gatewayID)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             List<UserStoragePreference> result = regClient.getAllUserStoragePreferences(userId, gatewayID);
@@ -5066,8 +5609,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<UserResourceProfile> getAllUserResourceProfiles(AuthzToken authzToken) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<UserResourceProfile> getAllUserResourceProfiles(AuthzToken authzToken)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             List<UserResourceProfile> result = regClient.getAllUserResourceProfiles();
@@ -5076,7 +5620,8 @@ public class AiravataServerHandler implements Airavata.Iface {
         } catch (Exception e) {
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while reading retrieving all user resource profiles. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while reading retrieving all user resource profiles. More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -5094,19 +5639,26 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean updateUserComputeResourcePreference(AuthzToken authzToken, String userId, String gatewayID, String userComputeResourceId,
-                                                       UserComputeResourcePreference userComputeResourcePreference)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateUserComputeResourcePreference(
+            AuthzToken authzToken,
+            String userId,
+            String gatewayID,
+            String userComputeResourceId,
+            UserComputeResourcePreference userComputeResourcePreference)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
-            boolean result = regClient.updateUserComputeResourcePreference(userId, gatewayID, userComputeResourceId, userComputeResourcePreference);
+            boolean result = regClient.updateUserComputeResourcePreference(
+                    userId, gatewayID, userComputeResourceId, userComputeResourcePreference);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
             logger.error(userId, "Error while reading user compute resource preference...", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while updating user compute resource preference. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while updating user compute resource preference. More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -5114,10 +5666,18 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean updateUserStoragePreference(AuthzToken authzToken, String userId, String gatewayID, String userStorageId, UserStoragePreference dataStoragePreference) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean updateUserStoragePreference(
+            AuthzToken authzToken,
+            String userId,
+            String gatewayID,
+            String userStorageId,
+            UserStoragePreference dataStoragePreference)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
-            boolean result = regClient.updateUserStoragePreference(userId, gatewayID, userStorageId, dataStoragePreference);
+            boolean result =
+                    regClient.updateUserStoragePreference(userId, gatewayID, userStorageId, dataStoragePreference);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
@@ -5141,8 +5701,10 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean deleteUserComputeResourcePreference(AuthzToken authzToken, String userId,String gatewayID, String userComputeResourceId)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean deleteUserComputeResourcePreference(
+            AuthzToken authzToken, String userId, String gatewayID, String userComputeResourceId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.deleteUserComputeResourcePreference(userId, gatewayID, userComputeResourceId);
@@ -5152,7 +5714,8 @@ public class AiravataServerHandler implements Airavata.Iface {
             logger.error(userId, "Error while reading user compute resource preference...", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error while updating user compute resource preference. More info : " + e.getMessage());
+            exception.setMessage(
+                    "Error while updating user compute resource preference. More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -5160,7 +5723,10 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean deleteUserStoragePreference(AuthzToken authzToken, String userId, String gatewayID, String userStorageId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean deleteUserStoragePreference(
+            AuthzToken authzToken, String userId, String gatewayID, String userStorageId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             boolean result = regClient.deleteUserStoragePreference(userId, gatewayID, userStorageId);
@@ -5178,7 +5744,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<QueueStatusModel> getLatestQueueStatuses(AuthzToken authzToken) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<QueueStatusModel> getLatestQueueStatuses(AuthzToken authzToken)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             List<QueueStatusModel> result = regClient.getLatestQueueStatuses();
@@ -5188,7 +5756,7 @@ public class AiravataServerHandler implements Airavata.Iface {
             String msg = "Error in retrieving queue statuses";
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -5202,18 +5770,19 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public String registerDataProduct(AuthzToken authzToken, DataProductModel dataProductModel) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String registerDataProduct(AuthzToken authzToken, DataProductModel dataProductModel)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             String result = regClient.registerDataProduct(dataProductModel);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
-            String msg = "Error in registering the data resource"+dataProductModel.getProductName()+".";
+            String msg = "Error in registering the data resource" + dataProductModel.getProductName() + ".";
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -5221,18 +5790,19 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public DataProductModel getDataProduct(AuthzToken authzToken, String productUri) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public DataProductModel getDataProduct(AuthzToken authzToken, String productUri)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             DataProductModel result = regClient.getDataProduct(productUri);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
-            String msg = "Error in retreiving the data product "+productUri+".";
+            String msg = "Error in retreiving the data product " + productUri + ".";
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -5240,18 +5810,19 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public String registerReplicaLocation(AuthzToken authzToken, DataReplicaLocationModel replicaLocationModel) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String registerReplicaLocation(AuthzToken authzToken, DataReplicaLocationModel replicaLocationModel)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             String result = regClient.registerReplicaLocation(replicaLocationModel);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
-            String msg = "Error in retreiving the replica "+replicaLocationModel.getReplicaName()+".";
+            String msg = "Error in retreiving the replica " + replicaLocationModel.getReplicaName() + ".";
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -5259,18 +5830,19 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public DataProductModel getParentDataProduct(AuthzToken authzToken, String productUri) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public DataProductModel getParentDataProduct(AuthzToken authzToken, String productUri)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             DataProductModel result = regClient.getParentDataProduct(productUri);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
-            String msg = "Error in retreiving the parent data product for "+ productUri+".";
+            String msg = "Error in retreiving the parent data product for " + productUri + ".";
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -5278,18 +5850,19 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<DataProductModel> getChildDataProducts(AuthzToken authzToken, String productUri) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<DataProductModel> getChildDataProducts(AuthzToken authzToken, String productUri)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             List<DataProductModel> result = regClient.getChildDataProducts(productUri);
             registryClientPool.returnResource(regClient);
             return result;
         } catch (Exception e) {
-            String msg = "Error in retreiving the child products for "+productUri+".";
+            String msg = "Error in retreiving the child products for " + productUri + ".";
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -5304,34 +5877,50 @@ public class AiravataServerHandler implements Airavata.Iface {
      */
     @Override
     @SecurityCheck
-    public boolean shareResourceWithUsers(AuthzToken authzToken, String resourceId,
-                                          Map<String, ResourcePermissionType> userPermissionList) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean shareResourceWithUsers(
+            AuthzToken authzToken, String resourceId, Map<String, ResourcePermissionType> userPermissionList)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
-            if (!userHasAccessInternal(sharingClient, authzToken, resourceId, ResourcePermissionType.OWNER) && !userHasAccessInternal(sharingClient, authzToken, resourceId, ResourcePermissionType.MANAGE_SHARING)) {
-                throw new AuthorizationException("User is not allowed to change sharing because the user is either not the resource owner or does not have access to share the resource");
+            if (!userHasAccessInternal(sharingClient, authzToken, resourceId, ResourcePermissionType.OWNER)
+                    && !userHasAccessInternal(
+                            sharingClient, authzToken, resourceId, ResourcePermissionType.MANAGE_SHARING)) {
+                throw new AuthorizationException(
+                        "User is not allowed to change sharing because the user is either not the resource owner or does not have access to share the resource");
             }
-            for(Map.Entry<String, ResourcePermissionType> userPermission : userPermissionList.entrySet()){
+            for (Map.Entry<String, ResourcePermissionType> userPermission : userPermissionList.entrySet()) {
                 String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
-                if(userPermission.getValue().equals(ResourcePermissionType.WRITE))
-                    sharingClient.shareEntityWithUsers(gatewayId, resourceId,
-                            Arrays.asList(userPermission.getKey()), authzToken.getClaimsMap().get(Constants.GATEWAY_ID) + ":" + "WRITE", true);
-                else if(userPermission.getValue().equals(ResourcePermissionType.READ))
-                    sharingClient.shareEntityWithUsers(gatewayId, resourceId,
-                            Arrays.asList(userPermission.getKey()), authzToken.getClaimsMap().get(Constants.GATEWAY_ID) + ":" + "READ", true);
-                else if(userPermission.getValue().equals(ResourcePermissionType.MANAGE_SHARING)) {
+                if (userPermission.getValue().equals(ResourcePermissionType.WRITE))
+                    sharingClient.shareEntityWithUsers(
+                            gatewayId,
+                            resourceId,
+                            Arrays.asList(userPermission.getKey()),
+                            authzToken.getClaimsMap().get(Constants.GATEWAY_ID) + ":" + "WRITE",
+                            true);
+                else if (userPermission.getValue().equals(ResourcePermissionType.READ))
+                    sharingClient.shareEntityWithUsers(
+                            gatewayId,
+                            resourceId,
+                            Arrays.asList(userPermission.getKey()),
+                            authzToken.getClaimsMap().get(Constants.GATEWAY_ID) + ":" + "READ",
+                            true);
+                else if (userPermission.getValue().equals(ResourcePermissionType.MANAGE_SHARING)) {
                     if (userHasAccessInternal(sharingClient, authzToken, resourceId, ResourcePermissionType.OWNER)) {
                         createManageSharingPermissionTypeIfMissing(sharingClient, gatewayId);
-                        sharingClient.shareEntityWithUsers(gatewayId, resourceId,
-                                Arrays.asList(userPermission.getKey()), authzToken.getClaimsMap().get(Constants.GATEWAY_ID) + ":" + "MANAGE_SHARING", true);
-                    }
-                    else
-                        throw new AuthorizationException("User is not allowed to grant sharing permission because the user is not the resource owner.");
-                }
-                else {
-                    logger.error("Invalid ResourcePermissionType : " + userPermission.getValue().toString());
+                        sharingClient.shareEntityWithUsers(
+                                gatewayId,
+                                resourceId,
+                                Arrays.asList(userPermission.getKey()),
+                                authzToken.getClaimsMap().get(Constants.GATEWAY_ID) + ":" + "MANAGE_SHARING",
+                                true);
+                    } else
+                        throw new AuthorizationException(
+                                "User is not allowed to grant sharing permission because the user is not the resource owner.");
+                } else {
+                    logger.error("Invalid ResourcePermissionType : "
+                            + userPermission.getValue().toString());
                     throw new AiravataClientException(AiravataErrorType.UNSUPPORTED_OPERATION);
                 }
             }
@@ -5351,34 +5940,50 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean shareResourceWithGroups(AuthzToken authzToken, String resourceId,
-                                           Map<String, ResourcePermissionType> groupPermissionList)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean shareResourceWithGroups(
+            AuthzToken authzToken, String resourceId, Map<String, ResourcePermissionType> groupPermissionList)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
-            if (!userHasAccessInternal(sharingClient, authzToken, resourceId, ResourcePermissionType.OWNER) && !userHasAccessInternal(sharingClient, authzToken, resourceId, ResourcePermissionType.MANAGE_SHARING)) {
-                throw new AuthorizationException("User is not allowed to change sharing because the user is either not the resource owner or does not have access to share the resource");
+            if (!userHasAccessInternal(sharingClient, authzToken, resourceId, ResourcePermissionType.OWNER)
+                    && !userHasAccessInternal(
+                            sharingClient, authzToken, resourceId, ResourcePermissionType.MANAGE_SHARING)) {
+                throw new AuthorizationException(
+                        "User is not allowed to change sharing because the user is either not the resource owner or does not have access to share the resource");
             }
-            for(Map.Entry<String, ResourcePermissionType> groupPermission : groupPermissionList.entrySet()){
+            for (Map.Entry<String, ResourcePermissionType> groupPermission : groupPermissionList.entrySet()) {
                 String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
-                if(groupPermission.getValue().equals(ResourcePermissionType.WRITE))
-                    sharingClient.shareEntityWithGroups(gatewayId, resourceId,
-                            Arrays.asList(groupPermission.getKey()), authzToken.getClaimsMap().get(Constants.GATEWAY_ID) + ":" + "WRITE", true);
-                else if(groupPermission.getValue().equals(ResourcePermissionType.READ))
-                    sharingClient.shareEntityWithGroups(gatewayId, resourceId,
-                            Arrays.asList(groupPermission.getKey()), authzToken.getClaimsMap().get(Constants.GATEWAY_ID) + ":" + "READ", true);
-                else if(groupPermission.getValue().equals(ResourcePermissionType.MANAGE_SHARING)){
-                    if(userHasAccessInternal(sharingClient, authzToken, resourceId, ResourcePermissionType.OWNER)) {
+                if (groupPermission.getValue().equals(ResourcePermissionType.WRITE))
+                    sharingClient.shareEntityWithGroups(
+                            gatewayId,
+                            resourceId,
+                            Arrays.asList(groupPermission.getKey()),
+                            authzToken.getClaimsMap().get(Constants.GATEWAY_ID) + ":" + "WRITE",
+                            true);
+                else if (groupPermission.getValue().equals(ResourcePermissionType.READ))
+                    sharingClient.shareEntityWithGroups(
+                            gatewayId,
+                            resourceId,
+                            Arrays.asList(groupPermission.getKey()),
+                            authzToken.getClaimsMap().get(Constants.GATEWAY_ID) + ":" + "READ",
+                            true);
+                else if (groupPermission.getValue().equals(ResourcePermissionType.MANAGE_SHARING)) {
+                    if (userHasAccessInternal(sharingClient, authzToken, resourceId, ResourcePermissionType.OWNER)) {
                         createManageSharingPermissionTypeIfMissing(sharingClient, gatewayId);
-                        sharingClient.shareEntityWithGroups(gatewayId, resourceId,
-                                Arrays.asList(groupPermission.getKey()), authzToken.getClaimsMap().get(Constants.GATEWAY_ID) + ":" + "MANAGE_SHARING", true);
-                    }
-                    else
-                        throw new AuthorizationException("User is not allowed to grant sharing permission because the user is not the resource owner.");
-                }
-                else {
-                    logger.error("Invalid ResourcePermissionType : " + groupPermission.getValue().toString());
+                        sharingClient.shareEntityWithGroups(
+                                gatewayId,
+                                resourceId,
+                                Arrays.asList(groupPermission.getKey()),
+                                authzToken.getClaimsMap().get(Constants.GATEWAY_ID) + ":" + "MANAGE_SHARING",
+                                true);
+                    } else
+                        throw new AuthorizationException(
+                                "User is not allowed to grant sharing permission because the user is not the resource owner.");
+                } else {
+                    logger.error("Invalid ResourcePermissionType : "
+                            + groupPermission.getValue().toString());
                     throw new AiravataClientException(AiravataErrorType.UNSUPPORTED_OPERATION);
                 }
             }
@@ -5398,33 +6003,47 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean revokeSharingOfResourceFromUsers(AuthzToken authzToken, String resourceId,
-                                                    Map<String, ResourcePermissionType> userPermissionList) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean revokeSharingOfResourceFromUsers(
+            AuthzToken authzToken, String resourceId, Map<String, ResourcePermissionType> userPermissionList)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
-            if (!userHasAccessInternal(sharingClient, authzToken, resourceId, ResourcePermissionType.OWNER) && !userHasAccessInternal(sharingClient, authzToken, resourceId, ResourcePermissionType.MANAGE_SHARING)) {
-                throw new AuthorizationException("User is not allowed to change sharing because the user is either not the resource owner or does not have access to share the resource");
+            if (!userHasAccessInternal(sharingClient, authzToken, resourceId, ResourcePermissionType.OWNER)
+                    && !userHasAccessInternal(
+                            sharingClient, authzToken, resourceId, ResourcePermissionType.MANAGE_SHARING)) {
+                throw new AuthorizationException(
+                        "User is not allowed to change sharing because the user is either not the resource owner or does not have access to share the resource");
             }
-            for(Map.Entry<String, ResourcePermissionType> userPermission : userPermissionList.entrySet()){
+            for (Map.Entry<String, ResourcePermissionType> userPermission : userPermissionList.entrySet()) {
                 String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
-                if(userPermission.getValue().equals(ResourcePermissionType.WRITE))
-                    sharingClient.revokeEntitySharingFromUsers(gatewayId, resourceId,
-                            Arrays.asList(userPermission.getKey()), authzToken.getClaimsMap().get(Constants.GATEWAY_ID) + ":" + "WRITE");
-                else if(userPermission.getValue().equals(ResourcePermissionType.READ))
-                    sharingClient.revokeEntitySharingFromUsers(gatewayId, resourceId,
-                            Arrays.asList(userPermission.getKey()), authzToken.getClaimsMap().get(Constants.GATEWAY_ID) + ":" + "READ");
-                else if(userPermission.getValue().equals(ResourcePermissionType.MANAGE_SHARING)){
+                if (userPermission.getValue().equals(ResourcePermissionType.WRITE))
+                    sharingClient.revokeEntitySharingFromUsers(
+                            gatewayId,
+                            resourceId,
+                            Arrays.asList(userPermission.getKey()),
+                            authzToken.getClaimsMap().get(Constants.GATEWAY_ID) + ":" + "WRITE");
+                else if (userPermission.getValue().equals(ResourcePermissionType.READ))
+                    sharingClient.revokeEntitySharingFromUsers(
+                            gatewayId,
+                            resourceId,
+                            Arrays.asList(userPermission.getKey()),
+                            authzToken.getClaimsMap().get(Constants.GATEWAY_ID) + ":" + "READ");
+                else if (userPermission.getValue().equals(ResourcePermissionType.MANAGE_SHARING)) {
                     if (userHasAccessInternal(sharingClient, authzToken, resourceId, ResourcePermissionType.OWNER)) {
                         createManageSharingPermissionTypeIfMissing(sharingClient, gatewayId);
-                        sharingClient.revokeEntitySharingFromUsers(gatewayId, resourceId,
-                                Arrays.asList(userPermission.getKey()), authzToken.getClaimsMap().get(Constants.GATEWAY_ID) + ":" + "MANAGE_SHARING");
-                    }
-                    else
-                        throw new AuthorizationException("User is not allowed to change sharing permission because the user is not the resource owner.");
-                }
-                else {
-                    logger.error("Invalid ResourcePermissionType : " + userPermission.getValue().toString());
+                        sharingClient.revokeEntitySharingFromUsers(
+                                gatewayId,
+                                resourceId,
+                                Arrays.asList(userPermission.getKey()),
+                                authzToken.getClaimsMap().get(Constants.GATEWAY_ID) + ":" + "MANAGE_SHARING");
+                    } else
+                        throw new AuthorizationException(
+                                "User is not allowed to change sharing permission because the user is not the resource owner.");
+                } else {
+                    logger.error("Invalid ResourcePermissionType : "
+                            + userPermission.getValue().toString());
                     throw new AiravataClientException(AiravataErrorType.UNSUPPORTED_OPERATION);
                 }
             }
@@ -5444,59 +6063,73 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean revokeSharingOfResourceFromGroups(AuthzToken authzToken, String resourceId,
-                                                     Map<String, ResourcePermissionType> groupPermissionList)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean revokeSharingOfResourceFromGroups(
+            AuthzToken authzToken, String resourceId, Map<String, ResourcePermissionType> groupPermissionList)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         final String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
         try {
-            if (!userHasAccessInternal(sharingClient, authzToken, resourceId, ResourcePermissionType.OWNER) && !userHasAccessInternal(sharingClient, authzToken, resourceId, ResourcePermissionType.MANAGE_SHARING)) {
-                throw new AuthorizationException("User is not allowed to change sharing because the user is either not the resource owner or does not have access to share the resource");
+            if (!userHasAccessInternal(sharingClient, authzToken, resourceId, ResourcePermissionType.OWNER)
+                    && !userHasAccessInternal(
+                            sharingClient, authzToken, resourceId, ResourcePermissionType.MANAGE_SHARING)) {
+                throw new AuthorizationException(
+                        "User is not allowed to change sharing because the user is either not the resource owner or does not have access to share the resource");
             }
             // For certain resource types, restrict them from being unshared with admin groups
             ResourceType resourceType = getResourceType(sharingClient, gatewayId, resourceId);
             Set<ResourceType> adminRestrictedResourceTypes = new HashSet<>(Arrays.asList(
-                    ResourceType.EXPERIMENT, ResourceType.APPLICATION_DEPLOYMENT, ResourceType.GROUP_RESOURCE_PROFILE
-            ));
+                    ResourceType.EXPERIMENT, ResourceType.APPLICATION_DEPLOYMENT, ResourceType.GROUP_RESOURCE_PROFILE));
             if (adminRestrictedResourceTypes.contains(resourceType)) {
                 // Prevent removing Admins WRITE/MANAGE_SHARING access and Read Only Admins READ access
                 GatewayGroups gatewayGroups = retrieveGatewayGroups(regClient, gatewayId);
                 if (groupPermissionList.containsKey(gatewayGroups.getAdminsGroupId())
-                        && groupPermissionList.get(gatewayGroups.getAdminsGroupId()).equals(ResourcePermissionType.WRITE)) {
+                        && groupPermissionList
+                                .get(gatewayGroups.getAdminsGroupId())
+                                .equals(ResourcePermissionType.WRITE)) {
                     throw new Exception("Not allowed to remove Admins group's WRITE access.");
                 }
                 if (groupPermissionList.containsKey(gatewayGroups.getReadOnlyAdminsGroupId())
-                        && groupPermissionList.get(gatewayGroups.getReadOnlyAdminsGroupId()).equals(ResourcePermissionType.READ)) {
+                        && groupPermissionList
+                                .get(gatewayGroups.getReadOnlyAdminsGroupId())
+                                .equals(ResourcePermissionType.READ)) {
                     throw new Exception("Not allowed to remove Read Only Admins group's READ access.");
                 }
                 if (groupPermissionList.containsKey(gatewayGroups.getAdminsGroupId())
-                        && groupPermissionList.get(gatewayGroups.getAdminsGroupId()).equals(ResourcePermissionType.READ)) {
+                        && groupPermissionList
+                                .get(gatewayGroups.getAdminsGroupId())
+                                .equals(ResourcePermissionType.READ)) {
                     throw new Exception("Not allowed to remove Admins group's READ access.");
                 }
                 if (groupPermissionList.containsKey(gatewayGroups.getAdminsGroupId())
-                        && groupPermissionList.get(gatewayGroups.getAdminsGroupId()).equals(ResourcePermissionType.MANAGE_SHARING)) {
+                        && groupPermissionList
+                                .get(gatewayGroups.getAdminsGroupId())
+                                .equals(ResourcePermissionType.MANAGE_SHARING)) {
                     throw new Exception("Not allowed to remove Admins group's MANAGE_SHARING access.");
                 }
             }
-            for(Map.Entry<String, ResourcePermissionType> groupPermission : groupPermissionList.entrySet()){
-                if(groupPermission.getValue().equals(ResourcePermissionType.WRITE))
-                    sharingClient.revokeEntitySharingFromUsers(gatewayId, resourceId,
-                            Arrays.asList(groupPermission.getKey()), gatewayId + ":" + "WRITE");
-                else if(groupPermission.getValue().equals(ResourcePermissionType.READ))
-                    sharingClient.revokeEntitySharingFromUsers(gatewayId, resourceId,
-                            Arrays.asList(groupPermission.getKey()), gatewayId + ":" + "READ");
-                else if(groupPermission.getValue().equals(ResourcePermissionType.MANAGE_SHARING)){
-                    if(userHasAccessInternal(sharingClient, authzToken, resourceId, ResourcePermissionType.OWNER)) {
+            for (Map.Entry<String, ResourcePermissionType> groupPermission : groupPermissionList.entrySet()) {
+                if (groupPermission.getValue().equals(ResourcePermissionType.WRITE))
+                    sharingClient.revokeEntitySharingFromUsers(
+                            gatewayId, resourceId, Arrays.asList(groupPermission.getKey()), gatewayId + ":" + "WRITE");
+                else if (groupPermission.getValue().equals(ResourcePermissionType.READ))
+                    sharingClient.revokeEntitySharingFromUsers(
+                            gatewayId, resourceId, Arrays.asList(groupPermission.getKey()), gatewayId + ":" + "READ");
+                else if (groupPermission.getValue().equals(ResourcePermissionType.MANAGE_SHARING)) {
+                    if (userHasAccessInternal(sharingClient, authzToken, resourceId, ResourcePermissionType.OWNER)) {
                         createManageSharingPermissionTypeIfMissing(sharingClient, gatewayId);
-                        sharingClient.revokeEntitySharingFromUsers(gatewayId, resourceId,
-                                Arrays.asList(groupPermission.getKey()), gatewayId + ":" + "MANAGE_SHARING");
-                    }
-                    else
-                        throw new AuthorizationException("User is not allowed to change sharing because the user is not the resource owner");
-                }
-                else {
-                    logger.error("Invalid ResourcePermissionType : " + groupPermission.getValue().toString());
+                        sharingClient.revokeEntitySharingFromUsers(
+                                gatewayId,
+                                resourceId,
+                                Arrays.asList(groupPermission.getKey()),
+                                gatewayId + ":" + "MANAGE_SHARING");
+                    } else
+                        throw new AuthorizationException(
+                                "User is not allowed to change sharing because the user is not the resource owner");
+                } else {
+                    logger.error("Invalid ResourcePermissionType : "
+                            + groupPermission.getValue().toString());
                     throw new AiravataClientException(AiravataErrorType.UNSUPPORTED_OPERATION);
                 }
             }
@@ -5516,9 +6149,10 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<String> getAllAccessibleUsers(AuthzToken authzToken, String resourceId,
-            ResourcePermissionType permissionType) throws InvalidRequestException, AiravataClientException,
-            AiravataSystemException, AuthorizationException, TException {
+    public List<String> getAllAccessibleUsers(
+            AuthzToken authzToken, String resourceId, ResourcePermissionType permissionType)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
         return getAllAccessibleUsersInternal(authzToken, resourceId, permissionType, (c, t) -> {
             try {
@@ -5531,9 +6165,10 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<String> getAllDirectlyAccessibleUsers(AuthzToken authzToken, String resourceId,
-            ResourcePermissionType permissionType) throws InvalidRequestException, AiravataClientException,
-            AiravataSystemException, AuthorizationException, TException {
+    public List<String> getAllDirectlyAccessibleUsers(
+            AuthzToken authzToken, String resourceId, ResourcePermissionType permissionType)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
         return getAllAccessibleUsersInternal(authzToken, resourceId, permissionType, (c, t) -> {
             try {
@@ -5544,22 +6179,35 @@ public class AiravataServerHandler implements Airavata.Iface {
         });
     }
 
-    private List<String> getAllAccessibleUsersInternal(AuthzToken authzToken, String resourceId, ResourcePermissionType permissionType,  BiFunction<SharingRegistryService.Client, ResourcePermissionType, Collection<User>> userListFunction) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    private List<String> getAllAccessibleUsersInternal(
+            AuthzToken authzToken,
+            String resourceId,
+            ResourcePermissionType permissionType,
+            BiFunction<SharingRegistryService.Client, ResourcePermissionType, Collection<User>> userListFunction)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
             HashSet<String> accessibleUsers = new HashSet<>();
             if (permissionType.equals(ResourcePermissionType.WRITE)) {
-                userListFunction.apply(sharingClient, ResourcePermissionType.WRITE).stream().forEach(u -> accessibleUsers.add(u.getUserId()));
-                userListFunction.apply(sharingClient, ResourcePermissionType.OWNER).stream().forEach(u -> accessibleUsers.add(u.getUserId()));
+                userListFunction.apply(sharingClient, ResourcePermissionType.WRITE).stream()
+                        .forEach(u -> accessibleUsers.add(u.getUserId()));
+                userListFunction.apply(sharingClient, ResourcePermissionType.OWNER).stream()
+                        .forEach(u -> accessibleUsers.add(u.getUserId()));
             } else if (permissionType.equals(ResourcePermissionType.READ)) {
-                userListFunction.apply(sharingClient, ResourcePermissionType.READ).stream().forEach(u -> accessibleUsers.add(u.getUserId()));
-                userListFunction.apply(sharingClient, ResourcePermissionType.OWNER).stream().forEach(u -> accessibleUsers.add(u.getUserId()));
+                userListFunction.apply(sharingClient, ResourcePermissionType.READ).stream()
+                        .forEach(u -> accessibleUsers.add(u.getUserId()));
+                userListFunction.apply(sharingClient, ResourcePermissionType.OWNER).stream()
+                        .forEach(u -> accessibleUsers.add(u.getUserId()));
             } else if (permissionType.equals(ResourcePermissionType.OWNER)) {
-                userListFunction.apply(sharingClient, ResourcePermissionType.OWNER).stream().forEach(u -> accessibleUsers.add(u.getUserId()));
+                userListFunction.apply(sharingClient, ResourcePermissionType.OWNER).stream()
+                        .forEach(u -> accessibleUsers.add(u.getUserId()));
             } else if (permissionType.equals(ResourcePermissionType.MANAGE_SHARING)) {
-                userListFunction.apply(sharingClient, ResourcePermissionType.MANAGE_SHARING).stream().forEach(u -> accessibleUsers.add(u.getUserId()));
-                userListFunction.apply(sharingClient, ResourcePermissionType.OWNER).stream().forEach(u -> accessibleUsers.add(u.getUserId()));
+                userListFunction.apply(sharingClient, ResourcePermissionType.MANAGE_SHARING).stream()
+                        .forEach(u -> accessibleUsers.add(u.getUserId()));
+                userListFunction.apply(sharingClient, ResourcePermissionType.OWNER).stream()
+                        .forEach(u -> accessibleUsers.add(u.getUserId()));
             }
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
@@ -5577,7 +6225,10 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<String> getAllAccessibleGroups(AuthzToken authzToken, String resourceId, ResourcePermissionType permissionType) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<String> getAllAccessibleGroups(
+            AuthzToken authzToken, String resourceId, ResourcePermissionType permissionType)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
         return getAllAccessibleGroupsInternal(authzToken, resourceId, permissionType, (c, t) -> {
             try {
@@ -5590,9 +6241,10 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<String> getAllDirectlyAccessibleGroups(AuthzToken authzToken, String resourceId,
-            ResourcePermissionType permissionType) throws InvalidRequestException, AiravataClientException,
-            AiravataSystemException, AuthorizationException, TException {
+    public List<String> getAllDirectlyAccessibleGroups(
+            AuthzToken authzToken, String resourceId, ResourcePermissionType permissionType)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
         return getAllAccessibleGroupsInternal(authzToken, resourceId, permissionType, (c, t) -> {
             try {
@@ -5603,23 +6255,25 @@ public class AiravataServerHandler implements Airavata.Iface {
         });
     }
 
-    private List<String> getAllAccessibleGroupsInternal(AuthzToken authzToken, String resourceId, ResourcePermissionType permissionType, BiFunction<SharingRegistryService.Client, ResourcePermissionType, Collection<UserGroup>> groupListFunction)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    private List<String> getAllAccessibleGroupsInternal(
+            AuthzToken authzToken,
+            String resourceId,
+            ResourcePermissionType permissionType,
+            BiFunction<SharingRegistryService.Client, ResourcePermissionType, Collection<UserGroup>> groupListFunction)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
             HashSet<String> accessibleGroups = new HashSet<>();
             if (permissionType.equals(ResourcePermissionType.WRITE)) {
-                groupListFunction.apply(sharingClient, ResourcePermissionType.WRITE)
-                        .stream()
+                groupListFunction.apply(sharingClient, ResourcePermissionType.WRITE).stream()
                         .forEach(g -> accessibleGroups.add(g.getGroupId()));
             } else if (permissionType.equals(ResourcePermissionType.READ)) {
-                groupListFunction.apply(sharingClient, ResourcePermissionType.READ)
-                        .stream()
+                groupListFunction.apply(sharingClient, ResourcePermissionType.READ).stream()
                         .forEach(g -> accessibleGroups.add(g.getGroupId()));
             } else if (permissionType.equals(ResourcePermissionType.MANAGE_SHARING)) {
-                groupListFunction.apply(sharingClient, ResourcePermissionType.MANAGE_SHARING)
-                        .stream()
+                groupListFunction.apply(sharingClient, ResourcePermissionType.MANAGE_SHARING).stream()
                         .forEach(g -> accessibleGroups.add(g.getGroupId()));
             }
             registryClientPool.returnResource(regClient);
@@ -5638,7 +6292,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean userHasAccess(AuthzToken authzToken, String resourceId, ResourcePermissionType permissionType) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean userHasAccess(AuthzToken authzToken, String resourceId, ResourcePermissionType permissionType)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         final String domainId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
         final String userId = authzToken.getClaimsMap().get(Constants.USER_NAME) + "@" + domainId;
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
@@ -5647,7 +6303,8 @@ public class AiravataServerHandler implements Airavata.Iface {
             sharingClientPool.returnResource(sharingClient);
             return hasAccess;
         } catch (Exception e) {
-            String msg = "Error in if user can access resource. User ID : " + userId + ", Resource ID : " + resourceId + ", Resource Permission Type : " + permissionType.toString();
+            String msg = "Error in if user can access resource. User ID : " + userId + ", Resource ID : " + resourceId
+                    + ", Resource Permission Type : " + permissionType.toString();
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
             exception.setMessage(msg + " More info : " + e.getMessage());
@@ -5658,7 +6315,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public String createGroupResourceProfile(AuthzToken authzToken, GroupResourceProfile groupResourceProfile) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String createGroupResourceProfile(AuthzToken authzToken, GroupResourceProfile groupResourceProfile)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         // TODO: verify that gatewayId in groupResourceProfile matches authzToken gatewayId
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
@@ -5681,7 +6340,8 @@ public class AiravataServerHandler implements Airavata.Iface {
                     shareEntityWithAdminGatewayGroups(regClient, sharingClient, entity);
                 } catch (Exception ex) {
                     logger.error(ex.getMessage(), ex);
-                    logger.error("Rolling back group resource profile creation Group Resource Profile ID : " + groupResourceProfileId);
+                    logger.error("Rolling back group resource profile creation Group Resource Profile ID : "
+                            + groupResourceProfileId);
                     regClient.removeGroupResourceProfile(groupResourceProfileId);
                     AiravataSystemException ase = new AiravataSystemException();
                     ase.setMessage("Failed to create sharing registry record");
@@ -5692,7 +6352,9 @@ public class AiravataServerHandler implements Airavata.Iface {
             sharingClientPool.returnResource(sharingClient);
             return groupResourceProfileId;
         } catch (AuthorizationException ae) {
-            logger.info("User " + userName + " not allowed access to resources referenced in this GroupResourceProfile. Reason: " + ae.getMessage());
+            logger.info("User " + userName
+                    + " not allowed access to resources referenced in this GroupResourceProfile. Reason: "
+                    + ae.getMessage());
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
             throw ae;
@@ -5700,16 +6362,21 @@ public class AiravataServerHandler implements Airavata.Iface {
             String msg = "Error creating group resource profile.";
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
     }
 
-    private void validateGroupResourceProfile(SharingRegistryService.Client sharingClient, AuthzToken authzToken, GroupResourceProfile groupResourceProfile) throws AuthorizationException {
+    private void validateGroupResourceProfile(
+            SharingRegistryService.Client sharingClient,
+            AuthzToken authzToken,
+            GroupResourceProfile groupResourceProfile)
+            throws AuthorizationException {
         Set<String> tokenIds = new HashSet<>();
         if (groupResourceProfile.getComputePreferences() != null) {
-            for (GroupComputeResourcePreference groupComputeResourcePreference : groupResourceProfile.getComputePreferences()) {
+            for (GroupComputeResourcePreference groupComputeResourcePreference :
+                    groupResourceProfile.getComputePreferences()) {
                 if (groupComputeResourcePreference.getResourceSpecificCredentialStoreToken() != null) {
                     tokenIds.add(groupComputeResourcePreference.getResourceSpecificCredentialStoreToken());
                 }
@@ -5720,19 +6387,26 @@ public class AiravataServerHandler implements Airavata.Iface {
         }
         for (String tokenId : tokenIds) {
             if (!userHasAccessInternal(sharingClient, authzToken, tokenId, ResourcePermissionType.READ)) {
-                throw new AuthorizationException("User does not have READ permission to credential token " + tokenId + ".");
+                throw new AuthorizationException(
+                        "User does not have READ permission to credential token " + tokenId + ".");
             }
         }
     }
 
     @Override
     @SecurityCheck
-    public void updateGroupResourceProfile(AuthzToken authzToken, GroupResourceProfile groupResourceProfile) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public void updateGroupResourceProfile(AuthzToken authzToken, GroupResourceProfile groupResourceProfile)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
             validateGroupResourceProfile(sharingClient, authzToken, groupResourceProfile);
-            if (!userHasAccessInternal(sharingClient, authzToken, groupResourceProfile.getGroupResourceProfileId(), ResourcePermissionType.WRITE)){
+            if (!userHasAccessInternal(
+                    sharingClient,
+                    authzToken,
+                    groupResourceProfile.getGroupResourceProfileId(),
+                    ResourcePermissionType.WRITE)) {
                 throw new AuthorizationException("User does not have permission to update group resource profile");
             }
             regClient.updateGroupResourceProfile(groupResourceProfile);
@@ -5740,15 +6414,17 @@ public class AiravataServerHandler implements Airavata.Iface {
             sharingClientPool.returnResource(sharingClient);
         } catch (AuthorizationException ae) {
             String userName = authzToken.getClaimsMap().get(Constants.USER_NAME);
-            logger.info("User " + userName + " not allowed access to update GroupResourceProfile " + groupResourceProfile.getGroupResourceProfileId() + ", reason: " + ae.getMessage());
+            logger.info("User " + userName + " not allowed access to update GroupResourceProfile "
+                    + groupResourceProfile.getGroupResourceProfileId() + ", reason: " + ae.getMessage());
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
             throw ae;
         } catch (Exception e) {
-            String msg = "Error updating group resource profile. groupResourceProfileId: "+groupResourceProfile.getGroupResourceProfileId();
+            String msg = "Error updating group resource profile. groupResourceProfileId: "
+                    + groupResourceProfile.getGroupResourceProfileId();
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -5756,17 +6432,20 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public GroupResourceProfile getGroupResourceProfile(AuthzToken authzToken, String groupResourceProfileId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public GroupResourceProfile getGroupResourceProfile(AuthzToken authzToken, String groupResourceProfileId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
-            if(ServerSettings.isEnableSharing()) {
+            if (ServerSettings.isEnableSharing()) {
                 try {
                     String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
                     String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-                    if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                            groupResourceProfileId, gatewayId + ":READ")){
-                        throw new AuthorizationException("User does not have permission to access group resource profile");
+                    if (!sharingClient.userHasAccess(
+                            gatewayId, userId + "@" + gatewayId, groupResourceProfileId, gatewayId + ":READ")) {
+                        throw new AuthorizationException(
+                                "User does not have permission to access group resource profile");
                     }
                 } catch (Exception e) {
                     throw new AuthorizationException("User does not have permission to access group resource profile");
@@ -5777,15 +6456,17 @@ public class AiravataServerHandler implements Airavata.Iface {
             sharingClientPool.returnResource(sharingClient);
             return groupResourceProfile;
         } catch (AuthorizationException checkedException) {
-            logger.error("Error while retrieving group resource profile. groupResourceProfileId: " + groupResourceProfileId, checkedException);
+            logger.error(
+                    "Error while retrieving group resource profile. groupResourceProfileId: " + groupResourceProfileId,
+                    checkedException);
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
             throw checkedException;
         } catch (Exception e) {
-            String msg = "Error retrieving group resource profile. groupResourceProfileId: "+ groupResourceProfileId;
+            String msg = "Error retrieving group resource profile. groupResourceProfileId: " + groupResourceProfileId;
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -5793,17 +6474,20 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean removeGroupResourceProfile(AuthzToken authzToken, String groupResourceProfileId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean removeGroupResourceProfile(AuthzToken authzToken, String groupResourceProfileId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
             String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
-            if(ServerSettings.isEnableSharing()) {
+            if (ServerSettings.isEnableSharing()) {
                 try {
                     String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-                    if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                            groupResourceProfileId, gatewayId + ":WRITE")){
-                        throw new AuthorizationException("User does not have permission to remove group resource profile");
+                    if (!sharingClient.userHasAccess(
+                            gatewayId, userId + "@" + gatewayId, groupResourceProfileId, gatewayId + ":WRITE")) {
+                        throw new AuthorizationException(
+                                "User does not have permission to remove group resource profile");
                     }
                 } catch (Exception e) {
                     throw new AuthorizationException("User does not have permission to remove group resource profile");
@@ -5815,10 +6499,10 @@ public class AiravataServerHandler implements Airavata.Iface {
             sharingClientPool.returnResource(sharingClient);
             return result;
         } catch (Exception e) {
-            String msg = "Error removing group resource profile. groupResourceProfileId: "+ groupResourceProfileId;
+            String msg = "Error removing group resource profile. groupResourceProfileId: " + groupResourceProfileId;
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -5826,7 +6510,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<GroupResourceProfile> getGroupResourceList(AuthzToken authzToken, String gatewayId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<GroupResourceProfile> getGroupResourceList(AuthzToken authzToken, String gatewayId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         String userName = authzToken.getClaimsMap().get(Constants.USER_NAME);
@@ -5839,20 +6525,26 @@ public class AiravataServerHandler implements Airavata.Iface {
                 searchCriteria.setSearchCondition(SearchCondition.EQUAL);
                 searchCriteria.setValue(gatewayId + ":" + ResourceType.GROUP_RESOURCE_PROFILE.name());
                 filters.add(searchCriteria);
-                sharingClient.searchEntities(authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
-                        userName + "@" + gatewayId, filters, 0, -1).stream().forEach(p -> accessibleGroupResProfileIds
-                        .add(p.getEntityId()));
-
+                sharingClient
+                        .searchEntities(
+                                authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
+                                userName + "@" + gatewayId,
+                                filters,
+                                0,
+                                -1)
+                        .stream()
+                        .forEach(p -> accessibleGroupResProfileIds.add(p.getEntityId()));
             }
-            List<GroupResourceProfile> groupResourceProfileList = regClient.getGroupResourceList(gatewayId, accessibleGroupResProfileIds);
+            List<GroupResourceProfile> groupResourceProfileList =
+                    regClient.getGroupResourceList(gatewayId, accessibleGroupResProfileIds);
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
             return groupResourceProfileList;
         } catch (Exception e) {
-            String msg = "Error retrieving list group resource profile list. GatewayId: "+ gatewayId;
+            String msg = "Error retrieving list group resource profile list. GatewayId: " + gatewayId;
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             sharingClientPool.returnBrokenResource(sharingClient);
             throw exception;
@@ -5861,20 +6553,25 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean removeGroupComputePrefs(AuthzToken authzToken, String computeResourceId, String groupResourceProfileId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean removeGroupComputePrefs(
+            AuthzToken authzToken, String computeResourceId, String groupResourceProfileId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
-            if(ServerSettings.isEnableSharing()) {
+            if (ServerSettings.isEnableSharing()) {
                 try {
                     String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
                     String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-                    if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                            groupResourceProfileId, gatewayId + ":WRITE")){
-                        throw new AuthorizationException("User does not have permission to remove group compute preferences");
+                    if (!sharingClient.userHasAccess(
+                            gatewayId, userId + "@" + gatewayId, groupResourceProfileId, gatewayId + ":WRITE")) {
+                        throw new AuthorizationException(
+                                "User does not have permission to remove group compute preferences");
                     }
                 } catch (Exception e) {
-                    throw new AuthorizationException("User does not have permission to remove group compute preferences");
+                    throw new AuthorizationException(
+                            "User does not have permission to remove group compute preferences");
                 }
             }
             boolean result = regClient.removeGroupComputePrefs(computeResourceId, groupResourceProfileId);
@@ -5882,10 +6579,11 @@ public class AiravataServerHandler implements Airavata.Iface {
             sharingClientPool.returnResource(sharingClient);
             return result;
         } catch (Exception e) {
-            String msg = "Error removing group compute resource preferences. GroupResourceProfileId: "+ groupResourceProfileId;
+            String msg = "Error removing group compute resource preferences. GroupResourceProfileId: "
+                    + groupResourceProfileId;
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -5893,21 +6591,29 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean removeGroupComputeResourcePolicy(AuthzToken authzToken, String resourcePolicyId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean removeGroupComputeResourcePolicy(AuthzToken authzToken, String resourcePolicyId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
-            if(ServerSettings.isEnableSharing()) {
+            if (ServerSettings.isEnableSharing()) {
                 try {
-                    ComputeResourcePolicy computeResourcePolicy = regClient.getGroupComputeResourcePolicy(resourcePolicyId);
+                    ComputeResourcePolicy computeResourcePolicy =
+                            regClient.getGroupComputeResourcePolicy(resourcePolicyId);
                     String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
                     String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-                    if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                            computeResourcePolicy.getGroupResourceProfileId(), gatewayId + ":WRITE")){
-                        throw new AuthorizationException("User does not have permission to remove group compute resource policy");
+                    if (!sharingClient.userHasAccess(
+                            gatewayId,
+                            userId + "@" + gatewayId,
+                            computeResourcePolicy.getGroupResourceProfileId(),
+                            gatewayId + ":WRITE")) {
+                        throw new AuthorizationException(
+                                "User does not have permission to remove group compute resource policy");
                     }
                 } catch (Exception e) {
-                    throw new AuthorizationException("User does not have permission to remove group compute resource policy");
+                    throw new AuthorizationException(
+                            "User does not have permission to remove group compute resource policy");
                 }
             }
             boolean result = regClient.removeGroupComputeResourcePolicy(resourcePolicyId);
@@ -5915,10 +6621,10 @@ public class AiravataServerHandler implements Airavata.Iface {
             sharingClientPool.returnResource(sharingClient);
             return result;
         } catch (Exception e) {
-            String msg = "Error removing group compute resource policy. ResourcePolicyId: "+ resourcePolicyId;
+            String msg = "Error removing group compute resource policy. ResourcePolicyId: " + resourcePolicyId;
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -5926,21 +6632,29 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean removeGroupBatchQueueResourcePolicy(AuthzToken authzToken, String resourcePolicyId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean removeGroupBatchQueueResourcePolicy(AuthzToken authzToken, String resourcePolicyId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
-            if(ServerSettings.isEnableSharing()) {
+            if (ServerSettings.isEnableSharing()) {
                 try {
-                    BatchQueueResourcePolicy batchQueueResourcePolicy = regClient.getBatchQueueResourcePolicy(resourcePolicyId);
+                    BatchQueueResourcePolicy batchQueueResourcePolicy =
+                            regClient.getBatchQueueResourcePolicy(resourcePolicyId);
                     String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
                     String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-                    if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                            batchQueueResourcePolicy.getGroupResourceProfileId(), gatewayId + ":WRITE")){
-                        throw new AuthorizationException("User does not have permission to remove batch queue resource policy");
+                    if (!sharingClient.userHasAccess(
+                            gatewayId,
+                            userId + "@" + gatewayId,
+                            batchQueueResourcePolicy.getGroupResourceProfileId(),
+                            gatewayId + ":WRITE")) {
+                        throw new AuthorizationException(
+                                "User does not have permission to remove batch queue resource policy");
                     }
                 } catch (Exception e) {
-                    throw new AuthorizationException("User does not have permission to remove batch queue resource policy");
+                    throw new AuthorizationException(
+                            "User does not have permission to remove batch queue resource policy");
                 }
             }
             boolean result = regClient.removeGroupBatchQueueResourcePolicy(resourcePolicyId);
@@ -5948,10 +6662,10 @@ public class AiravataServerHandler implements Airavata.Iface {
             sharingClientPool.returnResource(sharingClient);
             return result;
         } catch (Exception e) {
-            String msg = "Error removing batch queue resource policy. ResourcePolicyId: "+ resourcePolicyId;
+            String msg = "Error removing batch queue resource policy. ResourcePolicyId: " + resourcePolicyId;
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -5959,31 +6673,36 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public GroupComputeResourcePreference getGroupComputeResourcePreference(AuthzToken authzToken, String computeResourceId, String groupResourceProfileId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public GroupComputeResourcePreference getGroupComputeResourcePreference(
+            AuthzToken authzToken, String computeResourceId, String groupResourceProfileId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
-            if(ServerSettings.isEnableSharing()) {
+            if (ServerSettings.isEnableSharing()) {
                 try {
                     String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
                     String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-                    if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                            groupResourceProfileId, gatewayId + ":READ")){
-                        throw new AuthorizationException("User does not have permission to access group resource profile");
+                    if (!sharingClient.userHasAccess(
+                            gatewayId, userId + "@" + gatewayId, groupResourceProfileId, gatewayId + ":READ")) {
+                        throw new AuthorizationException(
+                                "User does not have permission to access group resource profile");
                     }
                 } catch (Exception e) {
                     throw new AuthorizationException("User does not have permission to access group resource profile");
                 }
             }
-            GroupComputeResourcePreference groupComputeResourcePreference = regClient.getGroupComputeResourcePreference(computeResourceId, groupResourceProfileId);
+            GroupComputeResourcePreference groupComputeResourcePreference =
+                    regClient.getGroupComputeResourcePreference(computeResourceId, groupResourceProfileId);
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
             return groupComputeResourcePreference;
         } catch (Exception e) {
-            String msg = "Error retrieving Group compute preference. GroupResourceProfileId: "+ groupResourceProfileId;
+            String msg = "Error retrieving Group compute preference. GroupResourceProfileId: " + groupResourceProfileId;
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -5991,18 +6710,25 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public ComputeResourcePolicy getGroupComputeResourcePolicy(AuthzToken authzToken, String resourcePolicyId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public ComputeResourcePolicy getGroupComputeResourcePolicy(AuthzToken authzToken, String resourcePolicyId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
-            if(ServerSettings.isEnableSharing()) {
+            if (ServerSettings.isEnableSharing()) {
                 try {
-                    ComputeResourcePolicy computeResourcePolicy = regClient.getGroupComputeResourcePolicy(resourcePolicyId);
+                    ComputeResourcePolicy computeResourcePolicy =
+                            regClient.getGroupComputeResourcePolicy(resourcePolicyId);
                     String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
                     String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-                    if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                            computeResourcePolicy.getGroupResourceProfileId(), gatewayId + ":READ")){
-                        throw new AuthorizationException("User does not have permission to access group resource profile");
+                    if (!sharingClient.userHasAccess(
+                            gatewayId,
+                            userId + "@" + gatewayId,
+                            computeResourcePolicy.getGroupResourceProfileId(),
+                            gatewayId + ":READ")) {
+                        throw new AuthorizationException(
+                                "User does not have permission to access group resource profile");
                     }
                 } catch (Exception e) {
                     throw new AuthorizationException("User does not have permission to access group resource profile");
@@ -6014,10 +6740,10 @@ public class AiravataServerHandler implements Airavata.Iface {
             sharingClientPool.returnResource(sharingClient);
             return computeResourcePolicy;
         } catch (Exception e) {
-            String msg = "Error retrieving Group compute resource policy. ResourcePolicyId: "+ resourcePolicyId;
+            String msg = "Error retrieving Group compute resource policy. ResourcePolicyId: " + resourcePolicyId;
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -6025,18 +6751,25 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public BatchQueueResourcePolicy getBatchQueueResourcePolicy(AuthzToken authzToken, String resourcePolicyId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public BatchQueueResourcePolicy getBatchQueueResourcePolicy(AuthzToken authzToken, String resourcePolicyId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
-            if(ServerSettings.isEnableSharing()) {
+            if (ServerSettings.isEnableSharing()) {
                 try {
-                    BatchQueueResourcePolicy batchQueueResourcePolicy = regClient.getBatchQueueResourcePolicy(resourcePolicyId);
+                    BatchQueueResourcePolicy batchQueueResourcePolicy =
+                            regClient.getBatchQueueResourcePolicy(resourcePolicyId);
                     String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
                     String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-                    if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                            batchQueueResourcePolicy.getGroupResourceProfileId(), gatewayId + ":READ")){
-                        throw new AuthorizationException("User does not have permission to access group resource profile");
+                    if (!sharingClient.userHasAccess(
+                            gatewayId,
+                            userId + "@" + gatewayId,
+                            batchQueueResourcePolicy.getGroupResourceProfileId(),
+                            gatewayId + ":READ")) {
+                        throw new AuthorizationException(
+                                "User does not have permission to access group resource profile");
                     }
                 } catch (Exception e) {
                     throw new AuthorizationException("User does not have permission to access group resource profile");
@@ -6047,10 +6780,10 @@ public class AiravataServerHandler implements Airavata.Iface {
             sharingClientPool.returnResource(sharingClient);
             return batchQueueResourcePolicy;
         } catch (Exception e) {
-            String msg = "Error retrieving Group batch queue resource policy. ResourcePolicyId: "+ resourcePolicyId;
+            String msg = "Error retrieving Group batch queue resource policy. ResourcePolicyId: " + resourcePolicyId;
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -6058,31 +6791,37 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<GroupComputeResourcePreference> getGroupComputeResourcePrefList(AuthzToken authzToken, String groupResourceProfileId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<GroupComputeResourcePreference> getGroupComputeResourcePrefList(
+            AuthzToken authzToken, String groupResourceProfileId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
-            if(ServerSettings.isEnableSharing()) {
+            if (ServerSettings.isEnableSharing()) {
                 try {
                     String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
                     String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-                    if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                            groupResourceProfileId, gatewayId + ":READ")){
-                        throw new AuthorizationException("User does not have permission to access group resource profile");
+                    if (!sharingClient.userHasAccess(
+                            gatewayId, userId + "@" + gatewayId, groupResourceProfileId, gatewayId + ":READ")) {
+                        throw new AuthorizationException(
+                                "User does not have permission to access group resource profile");
                     }
                 } catch (Exception e) {
                     throw new AuthorizationException("User does not have permission to access group resource profile");
                 }
             }
-            List<GroupComputeResourcePreference> groupComputeResourcePreferenceList = regClient.getGroupComputeResourcePrefList(groupResourceProfileId);
+            List<GroupComputeResourcePreference> groupComputeResourcePreferenceList =
+                    regClient.getGroupComputeResourcePrefList(groupResourceProfileId);
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
             return groupComputeResourcePreferenceList;
         } catch (Exception e) {
-            String msg = "Error retrieving Group compute resource preference. GroupResourceProfileId: "+ groupResourceProfileId;
+            String msg = "Error retrieving Group compute resource preference. GroupResourceProfileId: "
+                    + groupResourceProfileId;
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -6090,31 +6829,37 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<BatchQueueResourcePolicy> getGroupBatchQueueResourcePolicyList(AuthzToken authzToken, String groupResourceProfileId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<BatchQueueResourcePolicy> getGroupBatchQueueResourcePolicyList(
+            AuthzToken authzToken, String groupResourceProfileId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
-            if(ServerSettings.isEnableSharing()) {
+            if (ServerSettings.isEnableSharing()) {
                 try {
                     String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
                     String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-                    if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                            groupResourceProfileId, gatewayId + ":READ")){
-                        throw new AuthorizationException("User does not have permission to access group resource profile");
+                    if (!sharingClient.userHasAccess(
+                            gatewayId, userId + "@" + gatewayId, groupResourceProfileId, gatewayId + ":READ")) {
+                        throw new AuthorizationException(
+                                "User does not have permission to access group resource profile");
                     }
                 } catch (Exception e) {
                     throw new AuthorizationException("User does not have permission to access group resource profile");
                 }
             }
-            List<BatchQueueResourcePolicy> batchQueueResourcePolicyList = regClient.getGroupBatchQueueResourcePolicyList(groupResourceProfileId);
+            List<BatchQueueResourcePolicy> batchQueueResourcePolicyList =
+                    regClient.getGroupBatchQueueResourcePolicyList(groupResourceProfileId);
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
             return batchQueueResourcePolicyList;
         } catch (Exception e) {
-            String msg = "Error retrieving Group batch queue resource policy list. GroupResourceProfileId: "+ groupResourceProfileId;
+            String msg = "Error retrieving Group batch queue resource policy list. GroupResourceProfileId: "
+                    + groupResourceProfileId;
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -6122,28 +6867,34 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<ComputeResourcePolicy> getGroupComputeResourcePolicyList(AuthzToken authzToken, String groupResourceProfileId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<ComputeResourcePolicy> getGroupComputeResourcePolicyList(
+            AuthzToken authzToken, String groupResourceProfileId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         SharingRegistryService.Client sharingClient = sharingClientPool.getResource();
         try {
-            if(ServerSettings.isEnableSharing()) {
+            if (ServerSettings.isEnableSharing()) {
                 try {
                     String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
                     String userId = authzToken.getClaimsMap().get(Constants.USER_NAME);
-                    if (!sharingClient.userHasAccess(gatewayId, userId + "@" + gatewayId,
-                            groupResourceProfileId, gatewayId + ":READ")){
-                        throw new AuthorizationException("User does not have permission to access group resource profile");
+                    if (!sharingClient.userHasAccess(
+                            gatewayId, userId + "@" + gatewayId, groupResourceProfileId, gatewayId + ":READ")) {
+                        throw new AuthorizationException(
+                                "User does not have permission to access group resource profile");
                     }
                 } catch (Exception e) {
                     throw new AuthorizationException("User does not have permission to access group resource profile");
                 }
             }
-            List<ComputeResourcePolicy> computeResourcePolicyList = regClient.getGroupComputeResourcePolicyList(groupResourceProfileId);
+            List<ComputeResourcePolicy> computeResourcePolicyList =
+                    regClient.getGroupComputeResourcePolicyList(groupResourceProfileId);
             registryClientPool.returnResource(regClient);
             sharingClientPool.returnResource(sharingClient);
             return computeResourcePolicyList;
         } catch (Exception e) {
-            String msg = "Error retrieving Group compute resource policy list. GroupResourceProfileId: "+ groupResourceProfileId;
+            String msg = "Error retrieving Group compute resource policy list. GroupResourceProfileId: "
+                    + groupResourceProfileId;
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
             exception.setMessage(msg + " More info : " + e.getMessage());
@@ -6154,7 +6905,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public GatewayGroups getGatewayGroups(AuthzToken authzToken) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public GatewayGroups getGatewayGroups(AuthzToken authzToken)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         String gatewayId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
 
         RegistryService.Client regClient = registryClientPool.getResource();
@@ -6174,7 +6927,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public Parser getParser(AuthzToken authzToken, String parserId, String gatewayId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public Parser getParser(AuthzToken authzToken, String parserId, String gatewayId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             Parser parser = regClient.getParser(parserId, gatewayId);
@@ -6192,7 +6947,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public String saveParser(AuthzToken authzToken, Parser parser) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String saveParser(AuthzToken authzToken, Parser parser)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             String parserId = regClient.saveParser(parser);
@@ -6210,14 +6967,16 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<Parser> listAllParsers(AuthzToken authzToken, String gatewayId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<Parser> listAllParsers(AuthzToken authzToken, String gatewayId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             List<Parser> parsers = regClient.listAllParsers(gatewayId);
             registryClientPool.returnResource(regClient);
             return parsers;
         } catch (Exception e) {
-            String msg = "Error while listing the parsers for gateway " + gatewayId ;
+            String msg = "Error while listing the parsers for gateway " + gatewayId;
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
             exception.setMessage(msg + " More info : " + e.getMessage());
@@ -6228,14 +6987,16 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean removeParser(AuthzToken authzToken, String parserId, String gatewayId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean removeParser(AuthzToken authzToken, String parserId, String gatewayId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             regClient.removeParser(parserId, gatewayId);
             registryClientPool.returnResource(regClient);
             return true;
         } catch (Exception e) {
-            String msg = "Error while removing the parser " + parserId + " in gateway " + gatewayId ;
+            String msg = "Error while removing the parser " + parserId + " in gateway " + gatewayId;
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
             exception.setMessage(msg + " More info : " + e.getMessage());
@@ -6247,7 +7008,8 @@ public class AiravataServerHandler implements Airavata.Iface {
     @Override
     @SecurityCheck
     public ParsingTemplate getParsingTemplate(AuthzToken authzToken, String templateId, String gatewayId)
-            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             ParsingTemplate parsingTemplate = regClient.getParsingTemplate(templateId, gatewayId);
@@ -6257,7 +7019,7 @@ public class AiravataServerHandler implements Airavata.Iface {
             String msg = "Error retrieving parsing template with id: " + templateId;
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -6265,10 +7027,14 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<ParsingTemplate> getParsingTemplatesForExperiment(AuthzToken authzToken, String experimentId, String gatewayId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<ParsingTemplate> getParsingTemplatesForExperiment(
+            AuthzToken authzToken, String experimentId, String gatewayId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
-            List<ParsingTemplate> parsingTemplates = regClient.getParsingTemplatesForExperiment(experimentId, gatewayId);
+            List<ParsingTemplate> parsingTemplates =
+                    regClient.getParsingTemplatesForExperiment(experimentId, gatewayId);
             registryClientPool.returnResource(regClient);
             return parsingTemplates;
         } catch (Exception e) {
@@ -6283,17 +7049,19 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public String saveParsingTemplate(AuthzToken authzToken, ParsingTemplate parsingTemplate) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public String saveParsingTemplate(AuthzToken authzToken, ParsingTemplate parsingTemplate)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
-            String templateId =  regClient.saveParsingTemplate(parsingTemplate);
+            String templateId = regClient.saveParsingTemplate(parsingTemplate);
             registryClientPool.returnResource(regClient);
             return templateId;
         } catch (Exception e) {
             String msg = "Error saving the parsing template";
             logger.error(msg, e);
             AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage(msg+" More info : " + e.getMessage());
+            exception.setMessage(msg + " More info : " + e.getMessage());
             registryClientPool.returnBrokenResource(regClient);
             throw exception;
         }
@@ -6301,7 +7069,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public boolean removeParsingTemplate(AuthzToken authzToken, String templateId, String gatewayId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public boolean removeParsingTemplate(AuthzToken authzToken, String templateId, String gatewayId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             regClient.removeParsingTemplate(templateId, gatewayId);
@@ -6319,7 +7089,9 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     @Override
     @SecurityCheck
-    public List<ParsingTemplate> listAllParsingTemplates(AuthzToken authzToken, String gatewayId) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException {
+    public List<ParsingTemplate> listAllParsingTemplates(AuthzToken authzToken, String gatewayId)
+            throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException,
+                    TException {
         RegistryService.Client regClient = registryClientPool.getResource();
         try {
             List<ParsingTemplate> templates = regClient.listAllParsingTemplates(gatewayId);
@@ -6337,50 +7109,86 @@ public class AiravataServerHandler implements Airavata.Iface {
 
     private void submitExperiment(String gatewayId, String experimentId) throws AiravataException {
         ExperimentSubmitEvent event = new ExperimentSubmitEvent(experimentId, gatewayId);
-        MessageContext messageContext = new MessageContext(event, MessageType.EXPERIMENT, "LAUNCH.EXP-" + UUID.randomUUID().toString(), gatewayId);
+        MessageContext messageContext = new MessageContext(
+                event, MessageType.EXPERIMENT, "LAUNCH.EXP-" + UUID.randomUUID().toString(), gatewayId);
         messageContext.setUpdatedTime(AiravataUtils.getCurrentTimestamp());
         experimentPublisher.publish(messageContext);
     }
 
     private void submitCancelExperiment(String gatewayId, String experimentId) throws AiravataException {
         ExperimentSubmitEvent event = new ExperimentSubmitEvent(experimentId, gatewayId);
-        MessageContext messageContext = new MessageContext(event, MessageType.EXPERIMENT_CANCEL, "CANCEL.EXP-" + UUID.randomUUID().toString(), gatewayId);
+        MessageContext messageContext = new MessageContext(
+                event,
+                MessageType.EXPERIMENT_CANCEL,
+                "CANCEL.EXP-" + UUID.randomUUID().toString(),
+                gatewayId);
         messageContext.setUpdatedTime(AiravataUtils.getCurrentTimestamp());
         experimentPublisher.publish(messageContext);
     }
 
-    private void submitExperimentIntermediateOutputsEvent(String gatewayId, String experimentId,
-                                                          List<String> outputNames)
-            throws AiravataException {
+    private void submitExperimentIntermediateOutputsEvent(
+            String gatewayId, String experimentId, List<String> outputNames) throws AiravataException {
 
-        ExperimentIntermediateOutputsEvent event = new ExperimentIntermediateOutputsEvent(
-                experimentId, gatewayId, outputNames);
-        MessageContext messageContext = new MessageContext(event, MessageType.INTERMEDIATE_OUTPUTS, "INTERMEDIATE_OUTPUTS.EXP-" + UUID.randomUUID().toString(), gatewayId);
+        ExperimentIntermediateOutputsEvent event =
+                new ExperimentIntermediateOutputsEvent(experimentId, gatewayId, outputNames);
+        MessageContext messageContext = new MessageContext(
+                event,
+                MessageType.INTERMEDIATE_OUTPUTS,
+                "INTERMEDIATE_OUTPUTS.EXP-" + UUID.randomUUID().toString(),
+                gatewayId);
         messageContext.setUpdatedTime(AiravataUtils.getCurrentTimestamp());
         experimentPublisher.publish(messageContext);
     }
 
-    private void shareEntityWithAdminGatewayGroups(RegistryService.Client regClient, SharingRegistryService.Client sharingClient, Entity entity) throws TException {
+    private void shareEntityWithAdminGatewayGroups(
+            RegistryService.Client regClient, SharingRegistryService.Client sharingClient, Entity entity)
+            throws TException {
         final String domainId = entity.getDomainId();
         GatewayGroups gatewayGroups = retrieveGatewayGroups(regClient, domainId);
         createManageSharingPermissionTypeIfMissing(sharingClient, domainId);
-        sharingClient.shareEntityWithGroups(domainId, entity.getEntityId(), Arrays.asList(gatewayGroups.getAdminsGroupId()), domainId + ":MANAGE_SHARING", true);
-        sharingClient.shareEntityWithGroups(domainId, entity.getEntityId(), Arrays.asList(gatewayGroups.getAdminsGroupId()), domainId + ":WRITE", true);
-        sharingClient.shareEntityWithGroups(domainId, entity.getEntityId(), Arrays.asList(gatewayGroups.getAdminsGroupId(), gatewayGroups.getReadOnlyAdminsGroupId()), domainId + ":READ", true);
-    }
-
-    private boolean userHasAccessInternal(SharingRegistryService.Client sharingClient, AuthzToken authzToken, String entityId, ResourcePermissionType permissionType) {
+        sharingClient.shareEntityWithGroups(
+                domainId,
+                entity.getEntityId(),
+                Arrays.asList(gatewayGroups.getAdminsGroupId()),
+                domainId + ":MANAGE_SHARING",
+                true);
+        sharingClient.shareEntityWithGroups(
+                domainId,
+                entity.getEntityId(),
+                Arrays.asList(gatewayGroups.getAdminsGroupId()),
+                domainId + ":WRITE",
+                true);
+        sharingClient.shareEntityWithGroups(
+                domainId,
+                entity.getEntityId(),
+                Arrays.asList(gatewayGroups.getAdminsGroupId(), gatewayGroups.getReadOnlyAdminsGroupId()),
+                domainId + ":READ",
+                true);
+    }
+
+    private boolean userHasAccessInternal(
+            SharingRegistryService.Client sharingClient,
+            AuthzToken authzToken,
+            String entityId,
+            ResourcePermissionType permissionType) {
         final String domainId = authzToken.getClaimsMap().get(Constants.GATEWAY_ID);
         final String userId = authzToken.getClaimsMap().get(Constants.USER_NAME) + "@" + domainId;
         try {
-            final boolean hasOwnerAccess = sharingClient.userHasAccess(domainId, userId, entityId, domainId + ":" + ResourcePermissionType.OWNER);
+            final boolean hasOwnerAccess = sharingClient.userHasAccess(
+                    domainId, userId, entityId, domainId + ":" + ResourcePermissionType.OWNER);
             boolean hasAccess = false;
             if (permissionType.equals(ResourcePermissionType.WRITE)) {
-                hasAccess = hasOwnerAccess || sharingClient.userHasAccess(domainId, userId, entityId, domainId + ":" + ResourcePermissionType.WRITE);
+                hasAccess = hasOwnerAccess
+                        || sharingClient.userHasAccess(
+                                domainId, userId, entityId, domainId + ":" + ResourcePermissionType.WRITE);
             } else if (permissionType.equals(ResourcePermissionType.READ)) {
-                hasAccess = hasOwnerAccess || sharingClient.userHasAccess(domainId, userId, entityId, domainId + ":" + ResourcePermissionType.READ);
+                hasAccess = hasOwnerAccess
+                        || sharingClient.userHasAccess(
+                                domainId, userId, entityId, domainId + ":" + ResourcePermissionType.READ);
             } else if (permissionType.equals(ResourcePermissionType.MANAGE_SHARING)) {
-                hasAccess = hasOwnerAccess || sharingClient.userHasAccess(domainId, userId, entityId, domainId + ":" + ResourcePermissionType.MANAGE_SHARING);
+                hasAccess = hasOwnerAccess
+                        || sharingClient.userHasAccess(
+                                domainId, userId, entityId, domainId + ":" + ResourcePermissionType.MANAGE_SHARING);
             } else if (permissionType.equals(ResourcePermissionType.OWNER)) {
                 hasAccess = hasOwnerAccess;
             }
@@ -6390,7 +7198,8 @@ public class AiravataServerHandler implements Airavata.Iface {
         }
     }
 
-    private ResourceType getResourceType(SharingRegistryService.Client sharingClient, String domainId, String entityId) throws TException {
+    private ResourceType getResourceType(SharingRegistryService.Client sharingClient, String domainId, String entityId)
+            throws TException {
         Entity entity = sharingClient.getEntity(domainId, entityId);
         for (ResourceType resourceType : ResourceType.values()) {
             if (entity.getEntityTypeId().equals(domainId + ":" + resourceType.name())) {
@@ -6400,7 +7209,8 @@ public class AiravataServerHandler implements Airavata.Iface {
         throw new RuntimeException("Unrecognized entity type id: " + entity.getEntityTypeId());
     }
 
-    private void createManageSharingPermissionTypeIfMissing(SharingRegistryService.Client sharingClient, String domainId) throws TException {
+    private void createManageSharingPermissionTypeIfMissing(
+            SharingRegistryService.Client sharingClient, String domainId) throws TException {
         // AIRAVATA-3297 Some gateways were created without the MANAGE_SHARING permission, so add it if missing
         String permissionTypeId = domainId + ":MANAGE_SHARING";
         if (!sharingClient.isPermissionExists(domainId, permissionTypeId)) {
diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/util/Constants.java b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/util/Constants.java
index 915a6310cc..31ed280639 100644
--- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/util/Constants.java
+++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/util/Constants.java
@@ -1,28 +1,28 @@
 /**
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
 package org.apache.airavata.api.server.util;
 
 public class Constants {
     public static final String API_SERVER_PORT = "apiserver.port";
     public static final String API_SERVER_HOST = "apiserver.host";
-	public static final String API_SERVER_NAME = "apiserver.name";
+    public static final String API_SERVER_NAME = "apiserver.name";
     public static final String WORKFLOW_SERVER_PORT = "workflow.server.port";
     public static final String WORKFLOW_SERVER_HOST = "workflow.server.host";
     public static final String API_SERVER_MIN_THREADS = "apiserver.server.min.threads";
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/pom.xml b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/pom.xml
index fe7cffd281..64705040f0 100644
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/pom.xml
+++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/pom.xml
@@ -1,24 +1,20 @@
-<?xml version="1.0" encoding="UTF-8"?>
 <!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
 
+http://www.apache.org/licenses/LICENSE-2.0
 
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     <parent>
diff --git a/airavata-api/airavata-client-sdks/airavata-php-sdk/pom.xml b/airavata-api/airavata-client-sdks/airavata-php-sdk/pom.xml
index 91052cc17b..e587da2c13 100644
--- a/airavata-api/airavata-client-sdks/airavata-php-sdk/pom.xml
+++ b/airavata-api/airavata-client-sdks/airavata-php-sdk/pom.xml
@@ -1,24 +1,20 @@
-<?xml version="1.0" encoding="UTF-8"?>
 <!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
 
+http://www.apache.org/licenses/LICENSE-2.0
 
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     <parent>
diff --git a/airavata-api/airavata-client-sdks/java-client-samples/pom.xml b/airavata-api/airavata-client-sdks/java-client-samples/pom.xml
index 7874540dba..8824f69e0e 100644
--- a/airavata-api/airavata-client-sdks/java-client-samples/pom.xml
+++ b/airavata-api/airavata-client-sdks/java-client-samples/pom.xml
@@ -1,24 +1,20 @@
-<?xml version="1.0" encoding="UTF-8"?>
 <!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
 
+http://www.apache.org/licenses/LICENSE-2.0
 
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 
diff --git a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CancelExperiments.java b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CancelExperiments.java
index 4f5288470b..7d9db0d6e9 100644
--- a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CancelExperiments.java
+++ b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CancelExperiments.java
@@ -1,51 +1,47 @@
 /**
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
 package org.apache.airavata.client.samples;
 
-import org.apache.airavata.model.error.*;
 import org.apache.airavata.api.Airavata;
 import org.apache.airavata.api.client.AiravataClientFactory;
+import org.apache.airavata.model.error.*;
 import org.apache.airavata.model.security.AuthzToken;
 import org.apache.thrift.TException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import java.lang.String;
-
 public class CancelExperiments {
 
-    //FIXME: Read from a config file
+    // FIXME: Read from a config file
     public static final String THRIFT_SERVER_HOST = "gw56.iu.xsede.org";
     public static final int THRIFT_SERVER_PORT = 8930;
-    private final static Logger logger = LoggerFactory.getLogger(CreateLaunchExperiment.class);
+    private static final Logger logger = LoggerFactory.getLogger(CreateLaunchExperiment.class);
     private static final String DEFAULT_USER = "default.registry.user";
     private static final String DEFAULT_GATEWAY = "default";
     private static Airavata.Client client;
 
-
-
     public static void main(String[] args) {
         try {
             client = AiravataClientFactory.createAiravataClient(THRIFT_SERVER_HOST, THRIFT_SERVER_PORT);
             String expeId = "echoExperiment_31c132fd-87ea-4781-803c-ae5f04a79baf";
-            terminateExperiment(client,expeId);
+            terminateExperiment(client, expeId);
 
             System.out.println("retrieved exp id : " + expeId);
         } catch (Exception e) {
@@ -54,8 +50,7 @@ public class CancelExperiments {
         }
     }
 
-    public static void terminateExperiment(Airavata.Client client, String expId)
-            throws TException {
+    public static void terminateExperiment(Airavata.Client client, String expId) throws TException {
         try {
             client.terminateExperiment(new AuthzToken(""), expId, DEFAULT_GATEWAY);
         } catch (ExperimentNotFoundException e) {
@@ -75,5 +70,4 @@ public class CancelExperiments {
             throw new TException(e);
         }
     }
-
 }
diff --git a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchBES.java b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchBES.java
index 86ead78cf7..c0357dc76f 100644
--- a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchBES.java
+++ b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchBES.java
@@ -1,24 +1,27 @@
 /**
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
 package org.apache.airavata.client.samples;
 
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
 import org.apache.airavata.api.Airavata;
 import org.apache.airavata.api.client.AiravataClientFactory;
 import org.apache.airavata.client.tools.RegisterSampleApplications;
@@ -43,16 +46,12 @@ import org.apache.thrift.TException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-
 public class CreateLaunchBES {
- 
+
     public static final String THRIFT_SERVER_HOST = "localhost";
     public static final int THRIFT_SERVER_PORT = 8930;
 
-    private final static Logger logger = LoggerFactory.getLogger(CreateLaunchExperiment.class);
+    private static final Logger logger = LoggerFactory.getLogger(CreateLaunchExperiment.class);
     private static final String DEFAULT_USER = "default.registry.user";
     private static final String DEFAULT_GATEWAY = "php_reference_gateway";
     private static Airavata.Client airavataClient;
@@ -65,25 +64,26 @@ public class CreateLaunchBES {
     private static String gatewayId;
 
     // unicore service endpoint url
-    private static final String unicoreEndPointURL = "https://deisa-unic.fz-juelich.de:9111/FZJ_JUROPA/services/BESFactory?res=default_bes_factory";
-//    private static final String unicoreEndPointURL = "https://fsd-cloud15.zam.kfa-juelich.de:7000/INTEROP1/services/BESFactory?res=default_bes_factory";
+    private static final String unicoreEndPointURL =
+            "https://deisa-unic.fz-juelich.de:9111/FZJ_JUROPA/services/BESFactory?res=default_bes_factory";
+    //    private static final String unicoreEndPointURL =
+    // "https://fsd-cloud15.zam.kfa-juelich.de:7000/INTEROP1/services/BESFactory?res=default_bes_factory";
 
     public static void main(String[] args) throws Exception {
         airavataClient = AiravataClientFactory.createAiravataClient(THRIFT_SERVER_HOST, THRIFT_SERVER_PORT);
         System.out.println("API version is " + airavataClient.getAPIVersion());
-//        createGateway();
-//        getGateway("testGatewayId");
-//        registerApplications(); // run this only the first time
+        //        createGateway();
+        //        getGateway("testGatewayId");
+        //        registerApplications(); // run this only the first time
         createAndLaunchExp();
-        }
+    }
 
     private static String fsdResourceId;
 
-
     public static void getAvailableAppInterfaceComputeResources(String appInterfaceId) {
         try {
-            Map<String, String> availableAppInterfaceComputeResources = airavataClient.
-                    getAvailableAppInterfaceComputeResources(new AuthzToken(""), appInterfaceId);
+            Map<String, String> availableAppInterfaceComputeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), appInterfaceId);
             for (String key : availableAppInterfaceComputeResources.keySet()) {
                 System.out.println("id : " + key);
                 System.out.println("name : " + availableAppInterfaceComputeResources.get(key));
@@ -97,10 +97,8 @@ public class CreateLaunchBES {
         } catch (TException e) {
             e.printStackTrace();
         }
-
     }
 
-
     public static void createGateway() {
         try {
             Gateway gateway = new Gateway();
@@ -117,7 +115,6 @@ public class CreateLaunchBES {
         } catch (TException e) {
             e.printStackTrace();
         }
-
     }
 
     public static void getGateway(String gatewayId) {
@@ -142,38 +139,34 @@ public class CreateLaunchBES {
         } catch (TException e) {
             e.printStackTrace();
         }
-
     }
 
-
     public static void createAndLaunchExp() throws TException {
         List<String> experimentIds = new ArrayList<String>();
         try {
             for (int i = 0; i < 1; i++) {
-//                final String expId = createEchoExperimentForFSD(airavataClient);
+                //                final String expId = createEchoExperimentForFSD(airavataClient);
                 final String expId = createMPIExperimentForFSD(airavataClient);
                 experimentIds.add(expId);
                 System.out.println("Experiment ID : " + expId);
-//                updateExperiment(airavata, expId);
+                //                updateExperiment(airavata, expId);
                 launchExperiment(airavataClient, expId);
             }
 
             Thread.sleep(10000);
             for (String exId : experimentIds) {
                 ExperimentModel experiment = airavataClient.getExperiment(new AuthzToken(""), exId);
-                System.out.println(experiment.getExperimentId() + " " + experiment.getExperimentStatus().get(0).getState().name());
+                System.out.println(experiment.getExperimentId() + " "
+                        + experiment.getExperimentStatus().get(0).getState().name());
             }
 
-
         } catch (Exception e) {
             logger.error("Error while connecting with server", e.getMessage());
             e.printStackTrace();
-
         }
     }
 
-    public static void launchExperiment(Airavata.Client client, String expId)
-            throws TException {
+    public static void launchExperiment(Airavata.Client client, String expId) throws TException {
         try {
             client.launchExperiment(new AuthzToken(""), expId, DEFAULT_GATEWAY);
         } catch (ExperimentNotFoundException e) {
@@ -197,36 +190,37 @@ public class CreateLaunchBES {
     public static void registerApplications() {
         RegisterSampleApplications registerSampleApplications = new RegisterSampleApplications(airavataClient);
 
-        //Register all compute hosts
+        // Register all compute hosts
         registerSampleApplications.registerXSEDEHosts();
 
-
-        //Register Gateway Resource Preferences
+        // Register Gateway Resource Preferences
         registerSampleApplications.registerGatewayResourceProfile();
 
-        //Register all application modules
+        // Register all application modules
         registerSampleApplications.registerAppModules();
 
-        //Register all application deployments
+        // Register all application deployments
         registerSampleApplications.registerAppDeployments();
 
-        //Register all application interfaces
+        // Register all application interfaces
         registerSampleApplications.registerAppInterfaces();
     }
 
-    public static String registerUnicoreEndpoint(String hostName, String hostDesc, JobSubmissionProtocol protocol, SecurityProtocol securityProtocol) throws TException {
+    public static String registerUnicoreEndpoint(
+            String hostName, String hostDesc, JobSubmissionProtocol protocol, SecurityProtocol securityProtocol)
+            throws TException {
 
-        ComputeResourceDescription computeResourceDescription = RegisterSampleApplicationsUtils
-                .createComputeResourceDescription(hostName, hostDesc, null, null);
+        ComputeResourceDescription computeResourceDescription =
+                RegisterSampleApplicationsUtils.createComputeResourceDescription(hostName, hostDesc, null, null);
 
         fsdResourceId = airavataClient.registerComputeResource(new AuthzToken(""), computeResourceDescription);
 
-        if (fsdResourceId.isEmpty())
-            throw new AiravataClientException();
+        if (fsdResourceId.isEmpty()) throw new AiravataClientException();
 
         System.out.println("FSD Compute ResourceID: " + fsdResourceId);
 
-        JobSubmissionInterface jobSubmission = RegisterSampleApplicationsUtils.createJobSubmissionInterface(fsdResourceId, protocol, 2);
+        JobSubmissionInterface jobSubmission =
+                RegisterSampleApplicationsUtils.createJobSubmissionInterface(fsdResourceId, protocol, 2);
         UnicoreJobSubmission ucrJobSubmission = new UnicoreJobSubmission();
         ucrJobSubmission.setSecurityProtocol(securityProtocol);
         ucrJobSubmission.setUnicoreEndPointURL(unicoreEndPointURL);
@@ -248,22 +242,24 @@ public class CreateLaunchBES {
             }
             List<OutputDataObjectType> exOut = client.getApplicationOutputs(new AuthzToken(""), echoAppId);
 
-            ExperimentModel simpleExperiment =
-                    ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY,"default", "admin", "echoExperiment", "SimpleEcho2", echoAppId, exInputs);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, "default", "admin", "echoExperiment", "SimpleEcho2", echoAppId, exInputs);
             simpleExperiment.setExperimentOutputs(exOut);
 
-
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), echoAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), echoAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(unicoreHostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 1, 1, 1, "normal", 30, 1048576);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(
+                                        id, 1, 1, 1, "normal", 30, 1048576);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
                         userConfigurationData.setComputationalResourceScheduling(scheduling);
-                        
+
                         userConfigurationData.setGenerateCert(false);
                         userConfigurationData.setUserDN("");
 
@@ -287,49 +283,50 @@ public class CreateLaunchBES {
         return null;
     }
 
-
     public static String createMPIExperimentForFSD(Airavata.Client client) throws TException {
         try {
             List<InputDataObjectType> exInputs = client.getApplicationInputs(new AuthzToken(""), mpiAppId);
             for (InputDataObjectType inputDataObjectType : exInputs) {
-//                if (inputDataObjectType.getName().equalsIgnoreCase("Sample_Input")) {
-//                    inputDataObjectType.setValue("");
-//                }
+                //                if (inputDataObjectType.getName().equalsIgnoreCase("Sample_Input")) {
+                //                    inputDataObjectType.setValue("");
+                //                }
                 if (inputDataObjectType.getName().equalsIgnoreCase("NumberOfProcesses")) {
                     inputDataObjectType.setValue("32");
                 }
                 if (inputDataObjectType.getName().equalsIgnoreCase("US3INPUT")) {
-                    inputDataObjectType.setValue("file://home/m.memon/us3input/smallerdata/hpcinput-uslims3.uthscsa.edu-uslims3_cauma3-01594.tar");
+                    inputDataObjectType.setValue(
+                            "file://home/m.memon/us3input/smallerdata/hpcinput-uslims3.uthscsa.edu-uslims3_cauma3-01594.tar");
                 }
                 if (inputDataObjectType.getName().equalsIgnoreCase("US3INPUTARG")) {
                     inputDataObjectType.setValue("hpcinput-uslims3.uthscsa.edu-uslims3_cauma3-01594.tar");
                 }
             }
-            
+
             List<OutputDataObjectType> exOut = client.getApplicationOutputs(new AuthzToken(""), mpiAppId);
-            
+
             for (OutputDataObjectType outputDataObjectType : exOut) {
-            	if(outputDataObjectType.getName().equals("US3OUT")){
-            		outputDataObjectType.setValue("output/analysis-results.tar");
-            	}
-			}
-            
-            ExperimentModel simpleExperiment =
-                    ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY,"default", "admin", "mpiExperiment", "HelloMPI", mpiAppId, exInputs);
-            simpleExperiment.setExperimentOutputs(exOut);
+                if (outputDataObjectType.getName().equals("US3OUT")) {
+                    outputDataObjectType.setValue("output/analysis-results.tar");
+                }
+            }
 
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, "default", "admin", "mpiExperiment", "HelloMPI", mpiAppId, exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), mpiAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), mpiAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(unicoreHostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 0, 4, 0, null, 10, 0);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(id, 0, 4, 0, null, 10, 0);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
                         userConfigurationData.setComputationalResourceScheduling(scheduling);
-                        
+
                         userConfigurationData.setGenerateCert(true);
                         userConfigurationData.setUserDN("CN=m.memon, O=Ultrascan Gateway, C=DE");
 
@@ -354,8 +351,7 @@ public class CreateLaunchBES {
         }
         return null;
     }
-    
-    
+
     public static List<ExperimentModel> getExperimentsForUser(Airavata.Client client, String user) {
         try {
             return client.getUserExperiments(new AuthzToken(""), DEFAULT_GATEWAY, user, -1, 0);
@@ -386,7 +382,6 @@ public class CreateLaunchBES {
         return null;
     }
 
-
     public static void getExperiment(Airavata.Client client, String expId) throws Exception {
         try {
             ExperimentModel experiment = client.getExperiment(new AuthzToken(""), expId);
@@ -411,5 +406,4 @@ public class CreateLaunchBES {
             throw new AiravataClientException(AiravataErrorType.INTERNAL_ERROR);
         }
     }
-
 }
diff --git a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperiment.java b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperiment.java
index db238546b8..74f30423b1 100644
--- a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperiment.java
+++ b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperiment.java
@@ -1,24 +1,28 @@
 /**
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
 package org.apache.airavata.client.samples;
 
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
 import org.apache.airavata.api.Airavata;
 import org.apache.airavata.api.client.AiravataClientFactory;
 import org.apache.airavata.client.tools.RegisterSampleApplications;
@@ -47,20 +51,15 @@ import org.apache.thrift.TException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-import java.util.Map;
-
 public class CreateLaunchExperiment {
 
-    //FIXME: Read from a config file
+    // FIXME: Read from a config file
     public static final String THRIFT_SERVER_HOST = "gw77.iu.xsede.org";
     public static final int THRIFT_SERVER_PORT = 8930;
-//	public static final String THRIFT_SERVER_HOST = "gw111.iu.xsede.org";
-//	public static final int THRIFT_SERVER_PORT = 9930;
+    //	public static final String THRIFT_SERVER_HOST = "gw111.iu.xsede.org";
+    //	public static final int THRIFT_SERVER_PORT = 9930;
 
-    private final static Logger logger = LoggerFactory.getLogger(CreateLaunchExperiment.class);
+    private static final Logger logger = LoggerFactory.getLogger(CreateLaunchExperiment.class);
     public static final String DEFAULT_USER = "default.registry.user";
     public static final String DEFAULT_GATEWAY = "default";
     private static Airavata.Client airavataClient;
@@ -86,32 +85,32 @@ public class CreateLaunchExperiment {
     private static String gatewayId;
 
     // unicore service endpoint url
-    private static final String unicoreEndPointURL = "https://fsd-cloud15.zam.kfa-juelich.de:7000/INTEROP1/services/BESFactory?res=default_bes_factory";
-
+    private static final String unicoreEndPointURL =
+            "https://fsd-cloud15.zam.kfa-juelich.de:7000/INTEROP1/services/BESFactory?res=default_bes_factory";
 
     public static void main(String[] args) throws Exception {
         airavataClient = AiravataClientFactory.createAiravataClient(THRIFT_SERVER_HOST, THRIFT_SERVER_PORT);
         AuthzToken token = new AuthzToken("empty_token");
         System.out.println("API version is " + airavataClient.getAPIVersion());
-//        registerApplications(); // run this only the first time
-//        Map<String, String> master = airavataClient.getAllUserSSHPubKeys(token, "master");
-//        System.out.println(master.size());
-        Map<String, JobStatus> jobStatuses = airavataClient.getJobStatuses(token, "SLM3-QEspresso-Stampede_dc2af008-a832-4fba-ab0a-4b61fa79f5b9");
-        for (String jobId : jobStatuses.keySet()){
+        //        registerApplications(); // run this only the first time
+        //        Map<String, String> master = airavataClient.getAllUserSSHPubKeys(token, "master");
+        //        System.out.println(master.size());
+        Map<String, JobStatus> jobStatuses =
+                airavataClient.getJobStatuses(token, "SLM3-QEspresso-Stampede_dc2af008-a832-4fba-ab0a-4b61fa79f5b9");
+        for (String jobId : jobStatuses.keySet()) {
             JobStatus jobStatus = jobStatuses.get(jobId);
             System.out.println(jobId);
             System.out.println(jobStatus.getJobState().toString());
         }
-//        createAndLaunchExp();
+        //        createAndLaunchExp();
     }
 
     private static String fsdResourceId;
 
-
     public static void getAvailableAppInterfaceComputeResources(String appInterfaceId) {
         try {
-            Map<String, String> availableAppInterfaceComputeResources = airavataClient.
-                    getAvailableAppInterfaceComputeResources(new AuthzToken(""), appInterfaceId);
+            Map<String, String> availableAppInterfaceComputeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), appInterfaceId);
             for (String key : availableAppInterfaceComputeResources.keySet()) {
                 System.out.println("id : " + key);
                 System.out.println("name : " + availableAppInterfaceComputeResources.get(key));
@@ -125,10 +124,8 @@ public class CreateLaunchExperiment {
         } catch (TException e) {
             e.printStackTrace();
         }
-
     }
 
-
     public static void createGateway() {
         try {
             Gateway gateway = new Gateway();
@@ -145,7 +142,6 @@ public class CreateLaunchExperiment {
         } catch (TException e) {
             e.printStackTrace();
         }
-
     }
 
     public static void getGateway(String gatewayId) {
@@ -170,104 +166,111 @@ public class CreateLaunchExperiment {
         } catch (TException e) {
             e.printStackTrace();
         }
-
     }
 
-
     public static void createAndLaunchExp() throws TException {
         List<String> experimentIds = new ArrayList<String>();
         try {
             for (int i = 0; i < 1; i++) {
-//                final String expId = createExperimentForSSHHost(airavata);
-//                final String expId = createEchoExperimentForFSD(airavataClient);
-//                final String expId = createMPIExperimentForFSD(airavataClient);
-//               final String expId = createEchoExperimentForStampede(airavataClient);
-//                final String expId = createEchoExperimentForTrestles(airavataClient);
-//                final String expId = createExperimentEchoForLocalHost(airavataClient);
-//                final String expId = createExperimentWRFTrestles(airavataClient);
-//                final String expId = createExperimentForBR2(airavataClient);
-//                final String expId = createExperimentForBR2Amber(airavataClient);
-//                final String expId = createExperimentWRFStampede(airavataClient);
+                //                final String expId = createExperimentForSSHHost(airavata);
+                //                final String expId = createEchoExperimentForFSD(airavataClient);
+                //                final String expId = createMPIExperimentForFSD(airavataClient);
+                //               final String expId = createEchoExperimentForStampede(airavataClient);
+                //                final String expId = createEchoExperimentForTrestles(airavataClient);
+                //                final String expId = createExperimentEchoForLocalHost(airavataClient);
+                //                final String expId = createExperimentWRFTrestles(airavataClient);
+                //                final String expId = createExperimentForBR2(airavataClient);
+                //                final String expId = createExperimentForBR2Amber(airavataClient);
+                //                final String expId = createExperimentWRFStampede(airavataClient);
                 final String expId = createExperimentForStampedeAmber(airavataClient);
-//                String expId = createExperimentForTrestlesAmber(airavataClient);
-//                final String expId = createExperimentGROMACSStampede(airavataClient);
-//                final String expId = createExperimentESPRESSOStampede(airavataClient);
-//                final String expId = createExperimentLAMMPSStampede(airavataClient);
-//                final String expId = createExperimentNWCHEMStampede(airavataClient);
-//                final String expId = createExperimentTRINITYStampede(airavataClient);
-//                final String expId = createExperimentAUTODOCKStampede(airavataClient); // this is not working , we need to register AutoDock app on stampede
-//                final String expId = createExperimentForLSF(airavataClient);
-//                final String expId = createExperimentLAMMPSForLSF(airavataClient);
-//            	  final String expId = "Ultrascan_ln_eb029947-391a-4ccf-8ace-9bafebe07cc0";
+                //                String expId = createExperimentForTrestlesAmber(airavataClient);
+                //                final String expId = createExperimentGROMACSStampede(airavataClient);
+                //                final String expId = createExperimentESPRESSOStampede(airavataClient);
+                //                final String expId = createExperimentLAMMPSStampede(airavataClient);
+                //                final String expId = createExperimentNWCHEMStampede(airavataClient);
+                //                final String expId = createExperimentTRINITYStampede(airavataClient);
+                //                final String expId = createExperimentAUTODOCKStampede(airavataClient); // this is not
+                // working , we need to register AutoDock app on stampede
+                //                final String expId = createExperimentForLSF(airavataClient);
+                //                final String expId = createExperimentLAMMPSForLSF(airavataClient);
+                //            	  final String expId = "Ultrascan_ln_eb029947-391a-4ccf-8ace-9bafebe07cc0";
                 experimentIds.add(expId);
                 System.out.println("Experiment ID : " + expId);
-//                updateExperiment(airavata, expId);
+                //                updateExperiment(airavata, expId);
 
                 launchExperiment(airavataClient, expId);
             }
 
             boolean allNotFinished = true;
-            while(allNotFinished) {
+            while (allNotFinished) {
                 allNotFinished = false;
                 for (String exId : experimentIds) {
                     ExperimentModel experiment = airavataClient.getExperiment(new AuthzToken(""), exId);
-                    if(!experiment.getExperimentStatus().get(0).getState().equals(ExperimentState.COMPLETED)&&
-                            !experiment.getExperimentStatus().get(0).getState().equals(ExperimentState.FAILED)
-                            &&!experiment.getExperimentStatus().get(0).getState().equals(ExperimentState.CANCELED)){
+                    if (!experiment.getExperimentStatus().get(0).getState().equals(ExperimentState.COMPLETED)
+                            && !experiment
+                                    .getExperimentStatus()
+                                    .get(0)
+                                    .getState()
+                                    .equals(ExperimentState.FAILED)
+                            && !experiment
+                                    .getExperimentStatus()
+                                    .get(0)
+                                    .getState()
+                                    .equals(ExperimentState.CANCELED)) {
                         allNotFinished = true;
                     }
-                    System.out.println(experiment.getExperimentId() + " " + experiment.getExperimentStatus().get(0).getState().name());
+                    System.out.println(experiment.getExperimentId() + " "
+                            + experiment.getExperimentStatus().get(0).getState().name());
                 }
                 System.out.println("----------------------------------------------------");
                 Thread.sleep(10000);
             }
 
-
         } catch (Exception e) {
             logger.error("Error while connecting with server", e.getMessage());
             e.printStackTrace();
-
         }
     }
 
-
     public static void registerApplications() {
         RegisterSampleApplications registerSampleApplications = new RegisterSampleApplications(airavataClient);
 
         // register localhost compute host
         registerSampleApplications.registerLocalHost();
 
-        //Register all compute hosts
+        // Register all compute hosts
         registerSampleApplications.registerXSEDEHosts();
 
         registerSampleApplications.registerNonXSEDEHosts();
 
-        //Register Gateway Resource Preferences
+        // Register Gateway Resource Preferences
         registerSampleApplications.registerGatewayResourceProfile();
 
-        //Register all application modules
+        // Register all application modules
         registerSampleApplications.registerAppModules();
 
-        //Register all application deployments
+        // Register all application deployments
         registerSampleApplications.registerAppDeployments();
 
-        //Register all application interfaces
+        // Register all application interfaces
         registerSampleApplications.registerAppInterfaces();
     }
 
-    public static String registerUnicoreEndpoint(String hostName, String hostDesc, JobSubmissionProtocol protocol, SecurityProtocol securityProtocol) throws TException {
+    public static String registerUnicoreEndpoint(
+            String hostName, String hostDesc, JobSubmissionProtocol protocol, SecurityProtocol securityProtocol)
+            throws TException {
 
-        ComputeResourceDescription computeResourceDescription = RegisterSampleApplicationsUtils
-                .createComputeResourceDescription(hostName, hostDesc, null, null);
+        ComputeResourceDescription computeResourceDescription =
+                RegisterSampleApplicationsUtils.createComputeResourceDescription(hostName, hostDesc, null, null);
 
         fsdResourceId = airavataClient.registerComputeResource(new AuthzToken(""), computeResourceDescription);
 
-        if (fsdResourceId.isEmpty())
-            throw new AiravataClientException();
+        if (fsdResourceId.isEmpty()) throw new AiravataClientException();
 
         System.out.println("FSD Compute ResourceID: " + fsdResourceId);
 
-        JobSubmissionInterface jobSubmission = RegisterSampleApplicationsUtils.createJobSubmissionInterface(fsdResourceId, protocol, 2);
+        JobSubmissionInterface jobSubmission =
+                RegisterSampleApplicationsUtils.createJobSubmissionInterface(fsdResourceId, protocol, 2);
         UnicoreJobSubmission ucrJobSubmission = new UnicoreJobSubmission();
         ucrJobSubmission.setSecurityProtocol(securityProtocol);
         ucrJobSubmission.setUnicoreEndPointURL(unicoreEndPointURL);
@@ -288,17 +291,18 @@ public class CreateLaunchExperiment {
             Project project = ProjectModelUtil.createProject("default", "admin", "test project");
             String projectId = client.createProject(new AuthzToken(""), DEFAULT_GATEWAY, project);
 
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, projectId, "admin", "echoExperiment",
-					        "SimpleEcho3", echoAppId, exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, projectId, "admin", "echoExperiment", "SimpleEcho3", echoAppId, exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), echoAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), echoAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(trestlesHostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 1, 1, 1, "normal", 30, 1);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(id, 1, 1, 1, "normal", 30, 1);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
@@ -324,7 +328,6 @@ public class CreateLaunchExperiment {
         return null;
     }
 
-
     public static String createEchoExperimentForFSD(Airavata.Client client) throws TException {
         try {
             List<InputDataObjectType> exInputs = client.getApplicationInputs(new AuthzToken(""), echoAppId);
@@ -339,18 +342,19 @@ public class CreateLaunchExperiment {
             }
             List<OutputDataObjectType> exOut = client.getApplicationOutputs(new AuthzToken(""), echoAppId);
 
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, "default", "admin", "echoExperiment",
-					        "SimpleEcho2", echoAppId, exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
-
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, "default", "admin", "echoExperiment", "SimpleEcho2", echoAppId, exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), echoAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), echoAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(unicoreHostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 1, 1, 1, "normal", 30, 1048576);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(
+                                        id, 1, 1, 1, "normal", 30, 1048576);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
@@ -379,7 +383,6 @@ public class CreateLaunchExperiment {
         return null;
     }
 
-
     public static String createMPIExperimentForFSD(Airavata.Client client) throws TException {
         try {
             List<InputDataObjectType> exInputs = client.getApplicationInputs(new AuthzToken(""), mpiAppId);
@@ -390,24 +393,24 @@ public class CreateLaunchExperiment {
             }
             List<OutputDataObjectType> exOut = client.getApplicationOutputs(new AuthzToken(""), mpiAppId);
 
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, "default", "admin", "mpiExperiment", "HelloMPI", mpiAppId, null);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, "default", "admin", "mpiExperiment",
-					        "HelloMPI", mpiAppId, null);
-	        simpleExperiment.setExperimentOutputs(exOut);
-
-
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), mpiAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), mpiAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(unicoreHostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 2, 1, 2, "normal", 30, 1048576);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(
+                                        id, 2, 1, 2, "normal", 30, 1048576);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
                         userConfigurationData.setComputationalResourceScheduling(scheduling);
-                        
+
                         userConfigurationData.setGenerateCert(false);
                         userConfigurationData.setUserDN("");
 
@@ -433,24 +436,25 @@ public class CreateLaunchExperiment {
         return null;
     }
 
-
     public static String createExperimentWRFStampede(Airavata.Client client) throws TException {
         try {
             List<InputDataObjectType> exInputs = client.getApplicationInputs(new AuthzToken(""), wrfAppId);
             setWRFInputs(exInputs);
             List<OutputDataObjectType> exOut = client.getApplicationOutputs(new AuthzToken(""), wrfAppId);
 
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, "default", "admin", "WRFExperiment",
-					        "Testing", wrfAppId, exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, "default", "admin", "WRFExperiment", "Testing", wrfAppId, exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), wrfAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), wrfAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(stampedeHostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 2, 32, 1, "development", 90, 1);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(
+                                        id, 2, 32, 1, "development", 90, 1);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
@@ -476,20 +480,21 @@ public class CreateLaunchExperiment {
         return null;
     }
 
-
     private static void setWRFInputs(List<InputDataObjectType> exInputs) {
         for (InputDataObjectType inputDataObjectType : exInputs) {
             if (inputDataObjectType.getName().equalsIgnoreCase("Config_Namelist_File")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/WRF_FILES/namelist.input");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/WRF_FILES/namelist.input");
             } else if (inputDataObjectType.getName().equalsIgnoreCase("WRF_Initial_Conditions")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/WRF_FILES/wrfinput_d01");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/WRF_FILES/wrfinput_d01");
             } else if (inputDataObjectType.getName().equalsIgnoreCase("WRF_Boundary_File")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/WRF_FILES/wrfbdy_d01");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/WRF_FILES/wrfbdy_d01");
             }
         }
     }
 
-
     public static String createExperimentGROMACSStampede(Airavata.Client client) throws TException {
         try {
 
@@ -497,17 +502,19 @@ public class CreateLaunchExperiment {
             setGROMACSInputs(exInputs);
             List<OutputDataObjectType> exOut = client.getApplicationOutputs(new AuthzToken(""), gromacsAppId);
 
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, "default", "admin",
-					        "GromacsExperiment", "Testing", gromacsAppId, exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, "default", "admin", "GromacsExperiment", "Testing", gromacsAppId, exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), gromacsAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), gromacsAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(stampedeHostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 1, 16, 1, "development", 30, 1);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(
+                                        id, 1, 16, 1, "development", 30, 1);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
@@ -536,9 +543,11 @@ public class CreateLaunchExperiment {
     private static void setGROMACSInputs(List<InputDataObjectType> exInputs) {
         for (InputDataObjectType inputDataObjectType : exInputs) {
             if (inputDataObjectType.getName().equalsIgnoreCase("GROMOS_Coordinate_File")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/GROMMACS_FILES/pdb1y6l-EM-vacuum.gro");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/GROMMACS_FILES/pdb1y6l-EM-vacuum.gro");
             } else if (inputDataObjectType.getName().equalsIgnoreCase("Portable_Input_Binary_File")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/GROMMACS_FILES/pdb1y6l-EM-vacuum.tpr");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/GROMMACS_FILES/pdb1y6l-EM-vacuum.tpr");
             }
         }
     }
@@ -549,17 +558,19 @@ public class CreateLaunchExperiment {
             setESPRESSOInputs(exInputs);
             List<OutputDataObjectType> exOut = client.getApplicationOutputs(new AuthzToken(""), espressoAppId);
 
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, "default", "admin",
-					        "EspressoExperiment", "Testing", espressoAppId, exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, "default", "admin", "EspressoExperiment", "Testing", espressoAppId, exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), espressoAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), espressoAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(stampedeHostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 1, 16, 1, "development", 30, 1);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(
+                                        id, 1, 16, 1, "development", 30, 1);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
@@ -588,9 +599,11 @@ public class CreateLaunchExperiment {
     private static void setESPRESSOInputs(List<InputDataObjectType> exInputs) {
         for (InputDataObjectType inputDataObjectType : exInputs) {
             if (inputDataObjectType.getName().equalsIgnoreCase("AI_Pseudopotential_File")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/ESPRESSO_FILES/Al.sample.in");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/ESPRESSO_FILES/Al.sample.in");
             } else if (inputDataObjectType.getName().equalsIgnoreCase("AI_Primitive_Cell")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/ESPRESSO_FILES/Al.pz-vbc.UPF");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/ESPRESSO_FILES/Al.pz-vbc.UPF");
             }
         }
     }
@@ -601,17 +614,19 @@ public class CreateLaunchExperiment {
             setTRINITYInputs(exInputs);
             List<OutputDataObjectType> exOut = client.getApplicationOutputs(new AuthzToken(""), trinityAppId);
 
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, "default", "admin",
-					        "TrinityExperiment", "Testing", trinityAppId, exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, "default", "admin", "TrinityExperiment", "Testing", trinityAppId, exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), trinityAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), trinityAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(stampedeHostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 1, 16, 1, "development", 30, 1);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(
+                                        id, 1, 16, 1, "development", 30, 1);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
@@ -640,9 +655,11 @@ public class CreateLaunchExperiment {
     private static void setTRINITYInputs(List<InputDataObjectType> exInputs) {
         for (InputDataObjectType inputDataObjectType : exInputs) {
             if (inputDataObjectType.getName().equalsIgnoreCase("RNA_Seq_Left_Input")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/TRINITY_FILES/reads.left.fq");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/TRINITY_FILES/reads.left.fq");
             } else if (inputDataObjectType.getName().equalsIgnoreCase("RNA_Seq_Right_Input")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/TRINITY_FILES/reads.right.fq");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/TRINITY_FILES/reads.right.fq");
             }
         }
     }
@@ -653,17 +670,19 @@ public class CreateLaunchExperiment {
             setLAMMPSInputs(exInputs);
             List<OutputDataObjectType> exOut = client.getApplicationOutputs(new AuthzToken(""), lammpsAppId);
 
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, "default", "admin",
-					        "LAMMPSExperiment", "Testing", lammpsAppId, exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, "default", "admin", "LAMMPSExperiment", "Testing", lammpsAppId, exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), lammpsAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), lammpsAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(stampedeHostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 1, 16, 1, "development", 30, 1);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(
+                                        id, 1, 16, 1, "development", 30, 1);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
@@ -692,7 +711,8 @@ public class CreateLaunchExperiment {
     private static void setLAMMPSInputs(List<InputDataObjectType> exInputs) {
         for (InputDataObjectType inputDataObjectType : exInputs) {
             if (inputDataObjectType.getName().equalsIgnoreCase("Friction_Simulation_Input")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/LAMMPS_FILES/in.friction");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/LAMMPS_FILES/in.friction");
             }
         }
     }
@@ -703,17 +723,19 @@ public class CreateLaunchExperiment {
             setNWCHEMInputs(exInputs);
             List<OutputDataObjectType> exOut = client.getApplicationOutputs(new AuthzToken(""), nwchemAppId);
 
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, "default", "admin",
-					        "NWchemExperiment", "Testing", nwchemAppId, exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, "default", "admin", "NWchemExperiment", "Testing", nwchemAppId, exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), nwchemAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), nwchemAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(stampedeHostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 1, 16, 1, "development", 30, 1);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(
+                                        id, 1, 16, 1, "development", 30, 1);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
@@ -742,7 +764,8 @@ public class CreateLaunchExperiment {
     private static void setNWCHEMInputs(List<InputDataObjectType> exInputs) {
         for (InputDataObjectType inputDataObjectType : exInputs) {
             if (inputDataObjectType.getName().equalsIgnoreCase("Water_Molecule_Input")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/NWCHEM_FILES/water.nw");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/NWCHEM_FILES/water.nw");
             }
         }
     }
@@ -753,17 +776,19 @@ public class CreateLaunchExperiment {
             setAUTODOCKInputs(exInputs);
             List<OutputDataObjectType> exOut = client.getApplicationOutputs(new AuthzToken(""), nwchemAppId);
 
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, "default", "admin",
-					        "AutoDockExperiment", "Testing", autodockAppId, exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, "default", "admin", "AutoDockExperiment", "Testing", autodockAppId, exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), autodockAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), autodockAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(stampedeHostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 1, 16, 1, "development", 30, 1);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(
+                                        id, 1, 16, 1, "development", 30, 1);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
@@ -793,29 +818,41 @@ public class CreateLaunchExperiment {
 
         for (InputDataObjectType inputDataObjectType : exInputs) {
             if (inputDataObjectType.getName().equalsIgnoreCase("AD4_parameters.dat")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/AD4_parameters.dat");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/AD4_parameters.dat");
             } else if (inputDataObjectType.getName().equalsIgnoreCase("hsg1.A.map")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/hsg1.A.map");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/hsg1.A.map");
             } else if (inputDataObjectType.getName().equalsIgnoreCase("hsg1.C.map")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/hsg1.C.map");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/hsg1.C.map");
             } else if (inputDataObjectType.getName().equalsIgnoreCase("hsg1.d.map")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/hsg1.d.map");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/hsg1.d.map");
             } else if (inputDataObjectType.getName().equalsIgnoreCase("hsg1.e.map")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/hsg1.e.map");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/hsg1.e.map");
             } else if (inputDataObjectType.getName().equalsIgnoreCase("hsg1.HD.map")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/hsg1.HD.map");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/hsg1.HD.map");
             } else if (inputDataObjectType.getName().equalsIgnoreCase("hsg1.maps.fld")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/hsg1.maps.fld");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/hsg1.maps.fld");
             } else if (inputDataObjectType.getName().equalsIgnoreCase("hsg1.NA.map")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/hsg1.NA.map");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/hsg1.NA.map");
             } else if (inputDataObjectType.getName().equalsIgnoreCase("hsg1.N.map")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/hsg1.N.map");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/hsg1.N.map");
             } else if (inputDataObjectType.getName().equalsIgnoreCase("hsg1.OA.map")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/hsg1.OA.map");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/hsg1.OA.map");
             } else if (inputDataObjectType.getName().equalsIgnoreCase("ind.dpf")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/ind.dpf");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/ind.dpf");
             } else if (inputDataObjectType.getName().equalsIgnoreCase("ind.pdbqt")) {
-                inputDataObjectType.setValue("/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/ind.pdbqt");
+                inputDataObjectType.setValue(
+                        "/Users/shameera/Downloads/PHP-Gateway-Scripts/appScripts/AUTODOCK_FILES/ind.pdbqt");
             }
         }
     }
@@ -826,17 +863,18 @@ public class CreateLaunchExperiment {
             setWRFInputs(exInputs);
             List<OutputDataObjectType> exOut = client.getApplicationOutputs(new AuthzToken(""), wrfAppId);
 
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, "default", "admin", "WRFExperiment",
-					        "Testing", wrfAppId, exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, "default", "admin", "WRFExperiment", "Testing", wrfAppId, exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), wrfAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), wrfAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(trestlesHostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 1, 1, 1, "normal", 30, 1);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(id, 1, 1, 1, "normal", 30, 1);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
@@ -871,7 +909,6 @@ public class CreateLaunchExperiment {
         }
     }
 
-
     public static void updateExperiment(Airavata.Client client, String expId) throws TException {
         try {
             ExperimentModel experiment = client.getExperiment(new AuthzToken(""), expId);
@@ -883,7 +920,6 @@ public class CreateLaunchExperiment {
         }
     }
 
-
     public static String createExperimentEchoForLocalHost(Airavata.Client client) throws TException {
         try {
             List<InputDataObjectType> exInputs = client.getApplicationInputs(new AuthzToken(""), echoAppId);
@@ -897,17 +933,18 @@ public class CreateLaunchExperiment {
             Project project = ProjectModelUtil.createProject("project1", "admin", "test project");
             String projectId = client.createProject(new AuthzToken(""), DEFAULT_GATEWAY, project);
 
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, projectId, "admin", "echoExperiment",
-					        "Echo Test", echoAppId, exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, projectId, "admin", "echoExperiment", "Echo Test", echoAppId, exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), echoAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), echoAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(localHost)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 1, 1, 1, "normal", 30, 1);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(id, 1, 1, 1, "normal", 30, 1);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
@@ -933,75 +970,81 @@ public class CreateLaunchExperiment {
         return null;
     }
 
-//    public static String createExperimentForSSHHost(Airavata.Client client) throws TException {
-//        try {
-//            List<OutputDataObjectType> exInputs = new ArrayList<OutputDataObjectType>();
-//            OutputDataObjectType input = new OutputDataObjectType();
-//            input.setName("echo_input");
-//            input.setType(DataType.STRING);
-//            input.setValue("Echoed_Output=Hello World");
-//            exInputs.add(input);
-//
-//            List<OutputDataObjectType> exOut = new ArrayList<OutputDataObjectType>();
-//            OutputDataObjectType output = new OutputDataObjectType();
-//            output.setName("Echoed_Output");
-//            output.setType(DataType.STRING);
-//            output.setValue("");
-//            exOut.add(output);
-//
-//            Project project = ProjectModelUtil.createProject("default", "admin", "test project");
-//            String projectId = client.createProject(project);
-//
-//            ExperimentModel simpleExperiment =
-//                    ExperimentModelUtil.createSimpleExperiment(projectId, "admin", "sshEchoExperiment", "SSHEcho1", sshHostAppId.split(",")[1], exInputs);
-//            simpleExperiment.setExperimentOutputs(exOut);
-//
-//            ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(sshHostAppId.split(",")[0], 1, 1, 1, "normal", 1, 0, 1, "sds128");
-//            scheduling.setResourceHostId("gw111.iu.xsede.org");
-//            UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
-//            userConfigurationData.setAiravataAutoSchedule(false);
-//            userConfigurationData.setOverrideManualScheduledParams(false);
-//            userConfigurationData.setComputationalResourceScheduling(scheduling);
-//            simpleExperiment.setUserConfigurationData(userConfigurationData);
-//            return client.createExperiment(simpleExperiment);
-//        } catch (AiravataSystemException e) {
-//            logger.error("Error occured while creating the experiment...", e.getMessage());
-//            throw new AiravataSystemException(e);
-//        } catch (InvalidRequestException e) {
-//            logger.error("Error occured while creating the experiment...", e.getMessage());
-//            throw new InvalidRequestException(e);
-//        } catch (AiravataClientException e) {
-//            logger.error("Error occured while creating the experiment...", e.getMessage());
-//            throw new AiravataClientException(e);
-//        } catch (TException e) {
-//            logger.error("Error occured while creating the experiment...", e.getMessage());
-//            throw new TException(e);
-//        }
-//    }
+    //    public static String createExperimentForSSHHost(Airavata.Client client) throws TException {
+    //        try {
+    //            List<OutputDataObjectType> exInputs = new ArrayList<OutputDataObjectType>();
+    //            OutputDataObjectType input = new OutputDataObjectType();
+    //            input.setName("echo_input");
+    //            input.setType(DataType.STRING);
+    //            input.setValue("Echoed_Output=Hello World");
+    //            exInputs.add(input);
+    //
+    //            List<OutputDataObjectType> exOut = new ArrayList<OutputDataObjectType>();
+    //            OutputDataObjectType output = new OutputDataObjectType();
+    //            output.setName("Echoed_Output");
+    //            output.setType(DataType.STRING);
+    //            output.setValue("");
+    //            exOut.add(output);
+    //
+    //            Project project = ProjectModelUtil.createProject("default", "admin", "test project");
+    //            String projectId = client.createProject(project);
+    //
+    //            ExperimentModel simpleExperiment =
+    //                    ExperimentModelUtil.createSimpleExperiment(projectId, "admin", "sshEchoExperiment",
+    // "SSHEcho1", sshHostAppId.split(",")[1], exInputs);
+    //            simpleExperiment.setExperimentOutputs(exOut);
+    //
+    //            ComputationalResourceSchedulingModel scheduling =
+    // ExperimentModelUtil.createComputationResourceScheduling(sshHostAppId.split(",")[0], 1, 1, 1, "normal", 1, 0, 1,
+    // "sds128");
+    //            scheduling.setResourceHostId("gw111.iu.xsede.org");
+    //            UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
+    //            userConfigurationData.setAiravataAutoSchedule(false);
+    //            userConfigurationData.setOverrideManualScheduledParams(false);
+    //            userConfigurationData.setComputationalResourceScheduling(scheduling);
+    //            simpleExperiment.setUserConfigurationData(userConfigurationData);
+    //            return client.createExperiment(simpleExperiment);
+    //        } catch (AiravataSystemException e) {
+    //            logger.error("Error occured while creating the experiment...", e.getMessage());
+    //            throw new AiravataSystemException(e);
+    //        } catch (InvalidRequestException e) {
+    //            logger.error("Error occured while creating the experiment...", e.getMessage());
+    //            throw new InvalidRequestException(e);
+    //        } catch (AiravataClientException e) {
+    //            logger.error("Error occured while creating the experiment...", e.getMessage());
+    //            throw new AiravataClientException(e);
+    //        } catch (TException e) {
+    //            logger.error("Error occured while creating the experiment...", e.getMessage());
+    //            throw new TException(e);
+    //        }
+    //    }
 
     public static String createEchoExperimentForStampede(Airavata.Client client) throws TException {
         try {
             List<InputDataObjectType> exInputs = client.getApplicationInputs(new AuthzToken(""), echoAppId);
-//            for (InputDataObjectType inputDataObjectType : exInputs) {
-//                if (inputDataObjectType.getName().equalsIgnoreCase("Input_to_Echo")) {
-//                    inputDataObjectType.setValue("Hello World");
-//                }
-//            }
-//            List<OutputDataObjectType> exOut = client.getApplicationOutputs(new AuthzToken(""), echoAppId);
+            //            for (InputDataObjectType inputDataObjectType : exInputs) {
+            //                if (inputDataObjectType.getName().equalsIgnoreCase("Input_to_Echo")) {
+            //                    inputDataObjectType.setValue("Hello World");
+            //                }
+            //            }
+            //            List<OutputDataObjectType> exOut = client.getApplicationOutputs(new AuthzToken(""),
+            // echoAppId);
 
             Project project = ProjectModelUtil.createProject("default", "admin", "test project");
-	        String projectId = client.createProject(new AuthzToken(""), DEFAULT_GATEWAY, project);
+            String projectId = client.createProject(new AuthzToken(""), DEFAULT_GATEWAY, project);
 
-            ExperimentModel simpleExperiment =
-                    ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY,projectId, "admin", "echoExperiment", "SimpleEcho3", echoAppId, exInputs);
-//            simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, projectId, "admin", "echoExperiment", "SimpleEcho3", echoAppId, exInputs);
+            //            simpleExperiment.setExperimentOutputs(exOut);
 
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), echoAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), echoAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(stampedeHostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 1, 1, 1, "normal", 30, 1);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(id, 1, 1, 1, "normal", 30, 1);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
@@ -1027,75 +1070,80 @@ public class CreateLaunchExperiment {
         return null;
     }
 
-//    public static String createEchoExperimentForLonestar(Airavata.Client client) throws TException {
-//        try {
-//            List<OutputDataObjectType> exInputs = new ArrayList<OutputDataObjectType>();
-//            OutputDataObjectType input = new OutputDataObjectType();
-//            input.setName("echo_input");
-//            input.setType(DataType.STRING);
-//            input.setValue("Echoed_Output=Hello World");
-//            exInputs.add(input);
-//
-//            List<OutputDataObjectType> exOut = new ArrayList<OutputDataObjectType>();
-//            OutputDataObjectType output = new OutputDataObjectType();
-//            output.setName("Echoed_Output");
-//            output.setType(DataType.STRING);
-//            output.setValue("");
-//            exOut.add(output);
-//
-//            Project project = ProjectModelUtil.createProject("default", "admin", "test project");
-//            String projectId = client.createProject(project);
-//
-//            ExperimentModel simpleExperiment =
-//                    ExperimentModelUtil.createSimpleExperiment(projectId, "admin", "echoExperiment", "SimpleEcho4", echoAppId, exInputs);
-//            simpleExperiment.setExperimentOutputs(exOut);
-//
-//            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(echoAppId);
-//            if (computeResources != null && computeResources.size() != 0){
-//                for (String id : computeResources.keySet()){
-//                    String resourceName = computeResources.get(id);
-//                    if (resourceName.equals(stampedeHostName)){
-//                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 1, 1, 1, "normal", 1, 0, 1, "TG-STA110014S");
-//                        UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
-//                        userConfigurationData.setAiravataAutoSchedule(false);
-//                        userConfigurationData.setOverrideManualScheduledParams(false);
-//                        userConfigurationData.setComputationalResourceScheduling(scheduling);
-//                        simpleExperiment.setUserConfigurationData(userConfigurationData);
-//                        return client.createExperiment(simpleExperiment);
-//                    }
-//                }
-//            }
-//            ComputationalResourceSchedulingModel scheduling =
-//                    ExperimentModelUtil.createComputationResourceScheduling(sgeAppId.split(",")[0], 1, 1, 1, "normal", 1, 0, 1, "TG-STA110014S");
-//            UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
-//            userConfigurationData.setAiravataAutoSchedule(false);
-//            userConfigurationData.setOverrideManualScheduledParams(false);
-//            userConfigurationData.setComputationalResourceScheduling(scheduling);
-//            simpleExperiment.setUserConfigurationData(userConfigurationData);
-//            return client.createExperiment(simpleExperiment);
-//        } catch (AiravataSystemException e) {
-//            logger.error("Error occured while creating the experiment...", e.getMessage());
-//            throw new AiravataSystemException(e);
-//        } catch (InvalidRequestException e) {
-//            logger.error("Error occured while creating the experiment...", e.getMessage());
-//            throw new InvalidRequestException(e);
-//        } catch (AiravataClientException e) {
-//            logger.error("Error occured while creating the experiment...", e.getMessage());
-//            throw new AiravataClientException(e);
-//        } catch (LaunchValidationException e) {
-//            logger.error("Validation failed" + e.getErrorMessage());
-//            org.apache.airavata.model.error.ValidationResults validationResult = e.getValidationResult();
-//            for (org.apache.airavata.model.error.ValidatorResult vResult : validationResult.getValidationResultList()) {
-//                if (!vResult.isSetResult()) {
-//                    System.out.println("Error:" + vResult.getErrorDetails());
-//                }
-//            }
-//            throw e;
-//        } catch (TException e) {
-//            logger.error("Error occured while creating the experiment...", e.getMessage());
-//            throw new TException(e);
-//        }
-//    }
+    //    public static String createEchoExperimentForLonestar(Airavata.Client client) throws TException {
+    //        try {
+    //            List<OutputDataObjectType> exInputs = new ArrayList<OutputDataObjectType>();
+    //            OutputDataObjectType input = new OutputDataObjectType();
+    //            input.setName("echo_input");
+    //            input.setType(DataType.STRING);
+    //            input.setValue("Echoed_Output=Hello World");
+    //            exInputs.add(input);
+    //
+    //            List<OutputDataObjectType> exOut = new ArrayList<OutputDataObjectType>();
+    //            OutputDataObjectType output = new OutputDataObjectType();
+    //            output.setName("Echoed_Output");
+    //            output.setType(DataType.STRING);
+    //            output.setValue("");
+    //            exOut.add(output);
+    //
+    //            Project project = ProjectModelUtil.createProject("default", "admin", "test project");
+    //            String projectId = client.createProject(project);
+    //
+    //            ExperimentModel simpleExperiment =
+    //                    ExperimentModelUtil.createSimpleExperiment(projectId, "admin", "echoExperiment",
+    // "SimpleEcho4", echoAppId, exInputs);
+    //            simpleExperiment.setExperimentOutputs(exOut);
+    //
+    //            Map<String, String> computeResources =
+    // airavataClient.getAvailableAppInterfaceComputeResources(echoAppId);
+    //            if (computeResources != null && computeResources.size() != 0){
+    //                for (String id : computeResources.keySet()){
+    //                    String resourceName = computeResources.get(id);
+    //                    if (resourceName.equals(stampedeHostName)){
+    //                        ComputationalResourceSchedulingModel scheduling =
+    // ExperimentModelUtil.createComputationResourceScheduling(id, 1, 1, 1, "normal", 1, 0, 1, "TG-STA110014S");
+    //                        UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
+    //                        userConfigurationData.setAiravataAutoSchedule(false);
+    //                        userConfigurationData.setOverrideManualScheduledParams(false);
+    //                        userConfigurationData.setComputationalResourceScheduling(scheduling);
+    //                        simpleExperiment.setUserConfigurationData(userConfigurationData);
+    //                        return client.createExperiment(simpleExperiment);
+    //                    }
+    //                }
+    //            }
+    //            ComputationalResourceSchedulingModel scheduling =
+    //                    ExperimentModelUtil.createComputationResourceScheduling(sgeAppId.split(",")[0], 1, 1, 1,
+    // "normal", 1, 0, 1, "TG-STA110014S");
+    //            UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
+    //            userConfigurationData.setAiravataAutoSchedule(false);
+    //            userConfigurationData.setOverrideManualScheduledParams(false);
+    //            userConfigurationData.setComputationalResourceScheduling(scheduling);
+    //            simpleExperiment.setUserConfigurationData(userConfigurationData);
+    //            return client.createExperiment(simpleExperiment);
+    //        } catch (AiravataSystemException e) {
+    //            logger.error("Error occured while creating the experiment...", e.getMessage());
+    //            throw new AiravataSystemException(e);
+    //        } catch (InvalidRequestException e) {
+    //            logger.error("Error occured while creating the experiment...", e.getMessage());
+    //            throw new InvalidRequestException(e);
+    //        } catch (AiravataClientException e) {
+    //            logger.error("Error occured while creating the experiment...", e.getMessage());
+    //            throw new AiravataClientException(e);
+    //        } catch (LaunchValidationException e) {
+    //            logger.error("Validation failed" + e.getErrorMessage());
+    //            org.apache.airavata.model.error.ValidationResults validationResult = e.getValidationResult();
+    //            for (org.apache.airavata.model.error.ValidatorResult vResult :
+    // validationResult.getValidationResultList()) {
+    //                if (!vResult.isSetResult()) {
+    //                    System.out.println("Error:" + vResult.getErrorDetails());
+    //                }
+    //            }
+    //            throw e;
+    //        } catch (TException e) {
+    //            logger.error("Error occured while creating the experiment...", e.getMessage());
+    //            throw new TException(e);
+    //        }
+    //    }
 
     public static String createExperimentForBR2(Airavata.Client client) throws TException {
         try {
@@ -1107,21 +1155,21 @@ public class CreateLaunchExperiment {
             }
             List<OutputDataObjectType> exOut = client.getApplicationOutputs(new AuthzToken(""), echoAppId);
 
-
             Project project = ProjectModelUtil.createProject("default", "lahiru", "test project");
             String projectId = client.createProject(new AuthzToken(""), DEFAULT_GATEWAY, project);
 
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, projectId, "lahiru",
-					        "sshEchoExperiment", "SimpleEchoBR", echoAppId, exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, projectId, "lahiru", "sshEchoExperiment", "SimpleEchoBR", echoAppId, exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), echoAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), echoAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(br2HostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 1, 1, 1, "normal", 30, 1);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(id, 1, 1, 1, "normal", 30, 1);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
@@ -1158,25 +1206,25 @@ public class CreateLaunchExperiment {
             Project project = ProjectModelUtil.createProject("default", "lg11w", "test project");
             String projectId = client.createProject(new AuthzToken(""), DEFAULT_GATEWAY, project);
 
-
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, projectId, "lg11w",
-					        "sshEchoExperiment", "StressMem", echoAppId, exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, projectId, "lg11w", "sshEchoExperiment", "StressMem", echoAppId, exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
             simpleExperiment.setExperimentInputs(exInputs);
 
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), echoAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), echoAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(umassrcHostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 10, 1, 1, "long", 60,1000);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(id, 10, 1, 1, "long", 60, 1000);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
                         userConfigurationData.setComputationalResourceScheduling(scheduling);
                         simpleExperiment.setUserConfigurationData(userConfigurationData);
-                        simpleExperiment.setEmailAddresses(Arrays.asList(new String[]{"test@umassmed.edu"}));
+                        simpleExperiment.setEmailAddresses(Arrays.asList(new String[] {"test@umassmed.edu"}));
                         return client.createExperiment(new AuthzToken(""), DEFAULT_GATEWAY, simpleExperiment);
                     }
                 }
@@ -1221,17 +1269,19 @@ public class CreateLaunchExperiment {
             exOut.add(outputDataObjectType);
             exOut.add(output1);*/
 
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, "default", "lg11w",
-					        "LAMMPSExperiment", "Testing", lammpsAppId, exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, "default", "lg11w", "LAMMPSExperiment", "Testing", lammpsAppId, exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), lammpsAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), lammpsAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(umassrcHostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 10, 16, 1, "long", 60, 1000);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(
+                                        id, 10, 16, 1, "long", 60, 1000);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
@@ -1257,27 +1307,29 @@ public class CreateLaunchExperiment {
         return null;
     }
 
-
     public static String createExperimentForBR2Amber(Airavata.Client client) throws TException {
         try {
             List<InputDataObjectType> exInputs = client.getApplicationInputs(new AuthzToken(""), amberAppId);
-//			for (InputDataObjectType inputDataObjectType : exInputs) {
-//				if (inputDataObjectType.getName().equalsIgnoreCase("Heat_Restart_File")) {
-//					inputDataObjectType.setValue("/Users/raminder/Documents/Sample/Amber/02_Heat.rst");
-//				} else if (inputDataObjectType.getName().equalsIgnoreCase("Production_Control_File")) {
-//					inputDataObjectType.setValue("/Users/raminder/Documents/Sample/Amber/03_Prod.in");
-//				} else if (inputDataObjectType.getName().equalsIgnoreCase("Parameter_Topology_File")) {
-//					inputDataObjectType.setValue("/Users/raminder/Documents/Sample/Amber/prmtop");
-//				}
-//
-//			}
+            //			for (InputDataObjectType inputDataObjectType : exInputs) {
+            //				if (inputDataObjectType.getName().equalsIgnoreCase("Heat_Restart_File")) {
+            //					inputDataObjectType.setValue("/Users/raminder/Documents/Sample/Amber/02_Heat.rst");
+            //				} else if (inputDataObjectType.getName().equalsIgnoreCase("Production_Control_File")) {
+            //					inputDataObjectType.setValue("/Users/raminder/Documents/Sample/Amber/03_Prod.in");
+            //				} else if (inputDataObjectType.getName().equalsIgnoreCase("Parameter_Topology_File")) {
+            //					inputDataObjectType.setValue("/Users/raminder/Documents/Sample/Amber/prmtop");
+            //				}
+            //
+            //			}
             for (InputDataObjectType inputDataObjectType : exInputs) {
                 if (inputDataObjectType.getName().equalsIgnoreCase("Heat_Restart_File")) {
-                    inputDataObjectType.setValue("file://root@test-drive.airavata.org:/var/www/experimentData/admin101a290e6330f15a91349159553ae8b6bb1/02_Heat.rst");
+                    inputDataObjectType.setValue(
+                            "file://root@test-drive.airavata.org:/var/www/experimentData/admin101a290e6330f15a91349159553ae8b6bb1/02_Heat.rst");
                 } else if (inputDataObjectType.getName().equalsIgnoreCase("Production_Control_File")) {
-                    inputDataObjectType.setValue("file://root@test-drive.airavata.org:/var/www/experimentData/admin101a290e6330f15a91349159553ae8b6bb1/03_Prod.in");
+                    inputDataObjectType.setValue(
+                            "file://root@test-drive.airavata.org:/var/www/experimentData/admin101a290e6330f15a91349159553ae8b6bb1/03_Prod.in");
                 } else if (inputDataObjectType.getName().equalsIgnoreCase("Parameter_Topology_File")) {
-                    inputDataObjectType.setValue("file://root@test-drive.airavata.org:/var/www/experimentData/admin101a290e6330f15a91349159553ae8b6bb1/prmtop");
+                    inputDataObjectType.setValue(
+                            "file://root@test-drive.airavata.org:/var/www/experimentData/admin101a290e6330f15a91349159553ae8b6bb1/prmtop");
                 }
             }
 
@@ -1286,18 +1338,18 @@ public class CreateLaunchExperiment {
             Project project = ProjectModelUtil.createProject("default", "admin", "test project");
             String projectId = client.createProject(new AuthzToken(""), DEFAULT_GATEWAY, project);
 
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, projectId, "admin",
-					        "sshEchoExperiment", "SimpleEchoBR", amberAppId, exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
-
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, projectId, "admin", "sshEchoExperiment", "SimpleEchoBR", amberAppId, exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), amberAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), amberAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(br2HostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 4, 1, 1, "cpu", 20, 1);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(id, 4, 1, 1, "cpu", 20, 1);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
@@ -1326,43 +1378,46 @@ public class CreateLaunchExperiment {
     public static String createExperimentForStampedeAmber(Airavata.Client client) throws TException {
         try {
             List<InputDataObjectType> exInputs = client.getApplicationInputs(new AuthzToken(""), amberAppId);
-//			for (InputDataObjectType inputDataObjectType : exInputs) {
-//				if (inputDataObjectType.getName().equalsIgnoreCase("Heat_Restart_File")) {
-//					inputDataObjectType.setValue("/Users/raminder/Documents/Sample/Amber/02_Heat.rst");
-//				} else if (inputDataObjectType.getName().equalsIgnoreCase("Production_Control_File")) {
-//					inputDataObjectType.setValue("/Users/raminder/Documents/Sample/Amber/03_Prod.in");
-//				} else if (inputDataObjectType.getName().equalsIgnoreCase("Parameter_Topology_File")) {
-//					inputDataObjectType.setValue("/Users/raminder/Documents/Sample/Amber/prmtop");
-//				}
-//
-//			}
+            //			for (InputDataObjectType inputDataObjectType : exInputs) {
+            //				if (inputDataObjectType.getName().equalsIgnoreCase("Heat_Restart_File")) {
+            //					inputDataObjectType.setValue("/Users/raminder/Documents/Sample/Amber/02_Heat.rst");
+            //				} else if (inputDataObjectType.getName().equalsIgnoreCase("Production_Control_File")) {
+            //					inputDataObjectType.setValue("/Users/raminder/Documents/Sample/Amber/03_Prod.in");
+            //				} else if (inputDataObjectType.getName().equalsIgnoreCase("Parameter_Topology_File")) {
+            //					inputDataObjectType.setValue("/Users/raminder/Documents/Sample/Amber/prmtop");
+            //				}
+            //
+            //			}
             for (InputDataObjectType inputDataObjectType : exInputs) {
                 if (inputDataObjectType.getName().equalsIgnoreCase("Heat_Restart_File")) {
-                    inputDataObjectType.setValue("file://ogce@stampede.xsede.org:/scratch/01437/ogce/gta-work-dirs/PROCESS_e0610a6c-5778-4a69-a004-f440e29194af/02_Heat.rst");
+                    inputDataObjectType.setValue(
+                            "file://ogce@stampede.xsede.org:/scratch/01437/ogce/gta-work-dirs/PROCESS_e0610a6c-5778-4a69-a004-f440e29194af/02_Heat.rst");
                 } else if (inputDataObjectType.getName().equalsIgnoreCase("Production_Control_File")) {
-                    inputDataObjectType.setValue("file://ogce@stampede.xsede.org:/scratch/01437/ogce/gta-work-dirs/PROCESS_e0610a6c-5778-4a69-a004-f440e29194af/03_Prod.in");
+                    inputDataObjectType.setValue(
+                            "file://ogce@stampede.xsede.org:/scratch/01437/ogce/gta-work-dirs/PROCESS_e0610a6c-5778-4a69-a004-f440e29194af/03_Prod.in");
                 } else if (inputDataObjectType.getName().equalsIgnoreCase("Parameter_Topology_File")) {
-                    inputDataObjectType.setValue("file://ogce@stampede.xsede.org:/scratch/01437/ogce/gta-work-dirs/PROCESS_e0610a6c-5778-4a69-a004-f440e29194af/prmtop");
+                    inputDataObjectType.setValue(
+                            "file://ogce@stampede.xsede.org:/scratch/01437/ogce/gta-work-dirs/PROCESS_e0610a6c-5778-4a69-a004-f440e29194af/prmtop");
                 }
             }
 
             List<OutputDataObjectType> exOut = client.getApplicationOutputs(new AuthzToken(""), amberAppId);
 
-
             Project project = ProjectModelUtil.createProject("default", "admin", "test project");
             String projectId = client.createProject(new AuthzToken(""), DEFAULT_GATEWAY, project);
 
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, projectId, "admin",
-					        "sshEchoExperiment", "SimpleEchoBR", amberAppId, exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, projectId, "admin", "sshEchoExperiment", "SimpleEchoBR", amberAppId, exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), amberAppId);
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), amberAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(stampedeHostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 4, 1, 1, "normal", 20, 1);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(id, 4, 1, 1, "normal", 20, 1);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
@@ -1392,21 +1447,23 @@ public class CreateLaunchExperiment {
         try {
 
             List<InputDataObjectType> exInputs = client.getApplicationInputs(new AuthzToken(""), amberAppId);
-//			for (InputDataObjectType inputDataObjectType : exInputs) {
-//				if (inputDataObjectType.getName().equalsIgnoreCase("Heat_Restart_File")) {
-//					inputDataObjectType.setValue("/Users/raminder/Documents/Sample/Amber/02_Heat.rst");
-//				} else if (inputDataObjectType.getName().equalsIgnoreCase("Production_Control_File")) {
-//					inputDataObjectType.setValue("/Users/raminder/Documents/Sample/Amber/03_Prod.in");
-//				} else if (inputDataObjectType.getName().equalsIgnoreCase("Parameter_Topology_File")) {
-//					inputDataObjectType.setValue("/Users/raminder/Documents/Sample/Amber/prmtop");
-//				}
-//
-//			}
+            //			for (InputDataObjectType inputDataObjectType : exInputs) {
+            //				if (inputDataObjectType.getName().equalsIgnoreCase("Heat_Restart_File")) {
+            //					inputDataObjectType.setValue("/Users/raminder/Documents/Sample/Amber/02_Heat.rst");
+            //				} else if (inputDataObjectType.getName().equalsIgnoreCase("Production_Control_File")) {
+            //					inputDataObjectType.setValue("/Users/raminder/Documents/Sample/Amber/03_Prod.in");
+            //				} else if (inputDataObjectType.getName().equalsIgnoreCase("Parameter_Topology_File")) {
+            //					inputDataObjectType.setValue("/Users/raminder/Documents/Sample/Amber/prmtop");
+            //				}
+            //
+            //			}
             for (InputDataObjectType inputDataObjectType : exInputs) {
                 if (inputDataObjectType.getName().equalsIgnoreCase("Heat_Restart_File")) {
-                    inputDataObjectType.setValue("/Users/chathuri/dev/airavata/source/php/inputs/AMBER_FILES/02_Heat.rst");
+                    inputDataObjectType.setValue(
+                            "/Users/chathuri/dev/airavata/source/php/inputs/AMBER_FILES/02_Heat.rst");
                 } else if (inputDataObjectType.getName().equalsIgnoreCase("Production_Control_File")) {
-                    inputDataObjectType.setValue("/Users/chathuri/dev/airavata/source/php/inputs/AMBER_FILES/03_Prod.in");
+                    inputDataObjectType.setValue(
+                            "/Users/chathuri/dev/airavata/source/php/inputs/AMBER_FILES/03_Prod.in");
                 } else if (inputDataObjectType.getName().equalsIgnoreCase("Parameter_Topology_File")) {
                     inputDataObjectType.setValue("/Users/chathuri/dev/airavata/source/php/inputs/AMBER_FILES/prmtop");
                 }
@@ -1416,18 +1473,19 @@ public class CreateLaunchExperiment {
             Project project = ProjectModelUtil.createProject("default", "admin", "test project");
             String projectId = client.createProject(new AuthzToken(""), DEFAULT_GATEWAY, project);
 
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, projectId, "admin",
-					        "sshEchoExperiment", "SimpleEchoBR", amberAppId, exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY, projectId, "admin", "sshEchoExperiment", "SimpleEchoBR", amberAppId, exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
             simpleExperiment.setEnableEmailNotification(true);
-//            simpleExperiment.addToEmailAddresses("raman@ogce.org");
-            Map<String, String> computeResources = airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), amberAppId);
+            //            simpleExperiment.addToEmailAddresses("raman@ogce.org");
+            Map<String, String> computeResources =
+                    airavataClient.getAvailableAppInterfaceComputeResources(new AuthzToken(""), amberAppId);
             if (computeResources != null && computeResources.size() != 0) {
                 for (String id : computeResources.keySet()) {
                     String resourceName = computeResources.get(id);
                     if (resourceName.equals(trestlesHostName)) {
-                        ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(id, 4, 1, 1, "normal", 20, 1);
+                        ComputationalResourceSchedulingModel scheduling =
+                                ExperimentModelUtil.createComputationResourceScheduling(id, 4, 1, 1, "normal", 20, 1);
                         UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
                         userConfigurationData.setAiravataAutoSchedule(false);
                         userConfigurationData.setOverrideManualScheduledParams(false);
@@ -1453,8 +1511,7 @@ public class CreateLaunchExperiment {
         return null;
     }
 
-    public static void launchExperiment(Airavata.Client client, String expId)
-            throws TException {
+    public static void launchExperiment(Airavata.Client client, String expId) throws TException {
         try {
             client.launchExperiment(new AuthzToken(""), expId, DEFAULT_GATEWAY);
         } catch (ExperimentNotFoundException e) {
diff --git a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperimentUS3.java b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperimentUS3.java
index 6e81a24dcf..70bcb9b05a 100644
--- a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperimentUS3.java
+++ b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperimentUS3.java
@@ -1,24 +1,26 @@
 /**
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
 package org.apache.airavata.client.samples;
 
+import java.util.ArrayList;
+import java.util.List;
 import org.apache.airavata.api.Airavata;
 import org.apache.airavata.api.client.AiravataClientFactory;
 import org.apache.airavata.model.application.io.DataType;
@@ -39,111 +41,116 @@ import org.apache.thrift.TException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import java.util.ArrayList;
-import java.util.List;
-
 public class CreateLaunchExperimentUS3 {
-	
-	 //FIXME: Read from a config file
+
+    // FIXME: Read from a config file
     public static final String THRIFT_SERVER_HOST = "localhost";
     public static final int THRIFT_SERVER_PORT = 8930;
-    private final static Logger logger = LoggerFactory.getLogger(CreateLaunchExperiment.class);
+    private static final Logger logger = LoggerFactory.getLogger(CreateLaunchExperiment.class);
     private static final String DEFAULT_USER = "default.registry.user";
     private static final String DEFAULT_GATEWAY = "default.registry.gateway";
+
     public static void main(String[] args) {
         try {
-            final Airavata.Client airavata = AiravataClientFactory.createAiravataClient(THRIFT_SERVER_HOST, THRIFT_SERVER_PORT);
+            final Airavata.Client airavata =
+                    AiravataClientFactory.createAiravataClient(THRIFT_SERVER_HOST, THRIFT_SERVER_PORT);
             System.out.println("API version is " + airavata.getAPIVersion());
-//            addDescriptors();
-//            final String expId = createUS3ExperimentForTrestles(airavata);
+            //            addDescriptors();
+            //            final String expId = createUS3ExperimentForTrestles(airavata);
             final String expId = createUS3ExperimentForStampede(airavata);
-//            final String expId = createUS3ExperimentForLonestar(airavata);
-//            final String expId =  createUS3ExperimentForAlamo(airavata);
+            //            final String expId = createUS3ExperimentForLonestar(airavata);
+            //            final String expId =  createUS3ExperimentForAlamo(airavata);
             System.out.println("Experiment ID : " + expId);
             launchExperiment(airavata, expId);
             System.out.println("Launched successfully");
-//            try {
-//                Thread.sleep(20000);
-//            } catch (InterruptedException e) {
-//                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
-//            }
-//            Thread monitor = (new Thread(){
-//                 public void run() {
-//                     Map<String, JobStatus> jobStatuses = null;
-//                     while (true) {
-//                         try {
-//                             jobStatuses = airavata.getJobStatuses(expId);
-//                             Set<String> strings = jobStatuses.keySet();
-//                             for (String key : strings) {
-//                                 JobStatus jobStatus = jobStatuses.get(key);
-//                                 if(jobStatus == null){
-//                                     return;
-//                                 }else {
-//                                     if (JobState.COMPLETE.equals(jobStatus.getJobState())) {
-//                                         System.out.println("Job completed Job ID: " + jobStatus.getJobState().toString());
-//                                         return;
-//                                     }else{
-//                                        System.out.println("Job ID:" + key + jobStatuses.get(key).getJobState().toString());
-//                                     }
-//                                 }
-//                             }
-//                             Thread.sleep(20000);
-//                         } catch (Exception e) {
-//                             e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
-//                         }
-//                     }
-//                 }
-//            });
-//            monitor.start();
-//            try {
-//                monitor.join();
-//            } catch (InterruptedException e) {
-//                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
-//            }
-            
-//            airavata.terminateExperiment(expId);
-     
-//            Experiment experiment = airavata.getExperiment(expId);
-//            System.out.println("retrieved exp id : " + experiment.getExperimentID());
+            //            try {
+            //                Thread.sleep(20000);
+            //            } catch (InterruptedException e) {
+            //                e.printStackTrace();  //To change body of catch statement use File | Settings | File
+            // Templates.
+            //            }
+            //            Thread monitor = (new Thread(){
+            //                 public void run() {
+            //                     Map<String, JobStatus> jobStatuses = null;
+            //                     while (true) {
+            //                         try {
+            //                             jobStatuses = airavata.getJobStatuses(expId);
+            //                             Set<String> strings = jobStatuses.keySet();
+            //                             for (String key : strings) {
+            //                                 JobStatus jobStatus = jobStatuses.get(key);
+            //                                 if(jobStatus == null){
+            //                                     return;
+            //                                 }else {
+            //                                     if (JobState.COMPLETE.equals(jobStatus.getJobState())) {
+            //                                         System.out.println("Job completed Job ID: " +
+            // jobStatus.getJobState().toString());
+            //                                         return;
+            //                                     }else{
+            //                                        System.out.println("Job ID:" + key +
+            // jobStatuses.get(key).getJobState().toString());
+            //                                     }
+            //                                 }
+            //                             }
+            //                             Thread.sleep(20000);
+            //                         } catch (Exception e) {
+            //                             e.printStackTrace();  //To change body of catch statement use File | Settings
+            // | File Templates.
+            //                         }
+            //                     }
+            //                 }
+            //            });
+            //            monitor.start();
+            //            try {
+            //                monitor.join();
+            //            } catch (InterruptedException e) {
+            //                e.printStackTrace();  //To change body of catch statement use File | Settings | File
+            // Templates.
+            //            }
+
+            //            airavata.terminateExperiment(expId);
+
+            //            Experiment experiment = airavata.getExperiment(expId);
+            //            System.out.println("retrieved exp id : " + experiment.getExperimentID());
         } catch (Exception e) {
             logger.error("Error while connecting with server", e.getMessage());
             e.printStackTrace();
         }
     }
-//    public static void addDescriptors() throws AiravataAPIInvocationException,ApplicationSettingsException  {
-//        try {
-//            UltrascanDocumentCreator documentCreator = new UltrascanDocumentCreator(getAiravataAPI());
-//            documentCreator.createMPIPBSDocsTrestles();
-//            documentCreator.createEchoPBSDocsforTestles();
-//            documentCreator.createEchoSlurmDocsofStampede();
-//            documentCreator.createMPISLURMDocsStampede();
-//        } catch (AiravataAPIInvocationException e) {
-//            logger.error("Unable to create airavata API", e.getMessage());
-//            throw new AiravataAPIInvocationException(e);
-//        } catch (ApplicationSettingsException e) {
-//            logger.error("Unable to create airavata API", e.getMessage());
-//            throw new ApplicationSettingsException(e.getMessage());
-//        }
-//    }
-
-//    private static AiravataAPI getAiravataAPI() throws AiravataAPIInvocationException, ApplicationSettingsException {
-//        AiravataAPI airavataAPI;
-//        try {
-//            String sysUser = ClientSettings.getSetting(DEFAULT_USER);
-//            String gateway = ClientSettings.getSetting(DEFAULT_GATEWAY);
-//            airavataAPI = AiravataAPIFactory.getAPI(gateway, sysUser);
-//        } catch (AiravataAPIInvocationException e) {
-//            logger.error("Unable to create airavata API", e.getMessage());
-//            throw new AiravataAPIInvocationException(e);
-//        } catch (ApplicationSettingsException e) {
-//            logger.error("Unable to create airavata API", e.getMessage());
-//            throw new ApplicationSettingsException(e.getMessage());
-//        }
-//        return airavataAPI;
-//    }
-
-    public static String createExperimentForTrestles(Airavata.Client client) throws TException  {
-        try{
+    //    public static void addDescriptors() throws AiravataAPIInvocationException,ApplicationSettingsException  {
+    //        try {
+    //            UltrascanDocumentCreator documentCreator = new UltrascanDocumentCreator(getAiravataAPI());
+    //            documentCreator.createMPIPBSDocsTrestles();
+    //            documentCreator.createEchoPBSDocsforTestles();
+    //            documentCreator.createEchoSlurmDocsofStampede();
+    //            documentCreator.createMPISLURMDocsStampede();
+    //        } catch (AiravataAPIInvocationException e) {
+    //            logger.error("Unable to create airavata API", e.getMessage());
+    //            throw new AiravataAPIInvocationException(e);
+    //        } catch (ApplicationSettingsException e) {
+    //            logger.error("Unable to create airavata API", e.getMessage());
+    //            throw new ApplicationSettingsException(e.getMessage());
+    //        }
+    //    }
+
+    //    private static AiravataAPI getAiravataAPI() throws AiravataAPIInvocationException,
+    // ApplicationSettingsException {
+    //        AiravataAPI airavataAPI;
+    //        try {
+    //            String sysUser = ClientSettings.getSetting(DEFAULT_USER);
+    //            String gateway = ClientSettings.getSetting(DEFAULT_GATEWAY);
+    //            airavataAPI = AiravataAPIFactory.getAPI(gateway, sysUser);
+    //        } catch (AiravataAPIInvocationException e) {
+    //            logger.error("Unable to create airavata API", e.getMessage());
+    //            throw new AiravataAPIInvocationException(e);
+    //        } catch (ApplicationSettingsException e) {
+    //            logger.error("Unable to create airavata API", e.getMessage());
+    //            throw new ApplicationSettingsException(e.getMessage());
+    //        }
+    //        return airavataAPI;
+    //    }
+
+    public static String createExperimentForTrestles(Airavata.Client client) throws TException {
+        try {
             List<InputDataObjectType> exInputs = new ArrayList<InputDataObjectType>();
             InputDataObjectType input = new InputDataObjectType();
             input.setName("echo_input");
@@ -161,12 +168,18 @@ public class CreateLaunchExperimentUS3 {
             Project project = ProjectModelUtil.createProject("project1", "admin", "test project");
             String projectId = client.createProject(new AuthzToken(""), DEFAULT_GATEWAY, project);
 
-	        ExperimentModel simpleExperiment =
-			        ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, projectId, "admin",
-					        "US3EchoExperimentTrestles", "US3EchoTrestles", "US3EchoTrestles", exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY,
+                    projectId,
+                    "admin",
+                    "US3EchoExperimentTrestles",
+                    "US3EchoTrestles",
+                    "US3EchoTrestles",
+                    exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling("trestles.sdsc.edu", 1, 1, 1, "shared", 0, 0);
+            ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(
+                    "trestles.sdsc.edu", 1, 1, 1, "shared", 0, 0);
             scheduling.setResourceHostId("gsissh-trestles");
             UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
             userConfigurationData.setAiravataAutoSchedule(false);
@@ -183,14 +196,15 @@ public class CreateLaunchExperimentUS3 {
         } catch (AiravataClientException e) {
             logger.error("Error occured while creating the experiment...", e.getMessage());
             throw new AiravataClientException(e);
-        }catch (TException e) {
+        } catch (TException e) {
             logger.error("Error occured while creating the experiment...", e.getMessage());
             throw new TException(e);
         }
     }
-    
-    public static String createUS3ExperimentForTrestles (Airavata.Client client) throws AiravataSystemException, InvalidRequestException, AiravataClientException, TException  {
-        try{
+
+    public static String createUS3ExperimentForTrestles(Airavata.Client client)
+            throws AiravataSystemException, InvalidRequestException, AiravataClientException, TException {
+        try {
             List<InputDataObjectType> exInputs = new ArrayList<InputDataObjectType>();
             InputDataObjectType input = new InputDataObjectType();
             input.setName("input");
@@ -204,7 +218,7 @@ public class CreateLaunchExperimentUS3 {
             input2.setName("mgroupcount");
             input2.setType(DataType.STRING);
             input2.setValue("-mgroupcount=1");
-            
+
             exInputs.add(input);
             exInputs.add(input1);
             exInputs.add(input2);
@@ -214,37 +228,43 @@ public class CreateLaunchExperimentUS3 {
             output.setName("output");
             output.setType(DataType.URI);
             output.setValue("");
-//            OutputDataObjectType output1 = new OutputDataObjectType();
-//            output1.setName("stdout");
-//            output1.setType(DataType.STDOUT);
-//            output1.setValue("");
-//            OutputDataObjectType output2 = new OutputDataObjectType();
-//            output2.setName("stderr");
-//            output2.setType(DataType.STDERR);
-//            output2.setValue("");
+            //            OutputDataObjectType output1 = new OutputDataObjectType();
+            //            output1.setName("stdout");
+            //            output1.setType(DataType.STDOUT);
+            //            output1.setValue("");
+            //            OutputDataObjectType output2 = new OutputDataObjectType();
+            //            output2.setName("stderr");
+            //            output2.setType(DataType.STDERR);
+            //            output2.setValue("");
             exOut.add(output);
-//            exOut.add(output1);
-//            exOut.add(output2);
+            //            exOut.add(output1);
+            //            exOut.add(output2);
 
             Project project = ProjectModelUtil.createProject("ultrascan", "ultrascan", "test project");
             String projectId = client.createProject(new AuthzToken(""), DEFAULT_GATEWAY, project);
 
-	        ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, projectId,
-			        "ultrascan", "US3ExperimentTrestles", "US3AppTrestles",
-			        "ultrascan_7ce6cd43-622c-44e0-87c5-fb7a6528c799", exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY,
+                    projectId,
+                    "ultrascan",
+                    "US3ExperimentTrestles",
+                    "US3AppTrestles",
+                    "ultrascan_7ce6cd43-622c-44e0-87c5-fb7a6528c799",
+                    exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling("trestles.sdsc.xsede.org_72b9181b-7156-4975-a386-ed98b4949496", 32, 1, 0, "shared", 30, 0);
+            ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(
+                    "trestles.sdsc.xsede.org_72b9181b-7156-4975-a386-ed98b4949496", 32, 1, 0, "shared", 30, 0);
             UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
-            
+
             scheduling.setResourceHostId("trestles.sdsc.xsede.org_72b9181b-7156-4975-a386-ed98b4949496");
             userConfigurationData.setAiravataAutoSchedule(false);
             userConfigurationData.setOverrideManualScheduledParams(false);
-        
-  /*          AdvancedOutputDataHandling dataHandling = new AdvancedOutputDataHandling();
+
+            /*          AdvancedOutputDataHandling dataHandling = new AdvancedOutputDataHandling();
             dataHandling.setOutputDataDir("/home/sgg/chathuri/laptop_backup/airavata");
             userConfigurationData.setAdvanceOutputDataHandling(dataHandling);*/
-        
+
             userConfigurationData.setComputationalResourceScheduling(scheduling);
             simpleExperiment.setUserConfigurationData(userConfigurationData);
             return client.createExperiment(new AuthzToken(""), DEFAULT_GATEWAY, simpleExperiment);
@@ -257,13 +277,15 @@ public class CreateLaunchExperimentUS3 {
         } catch (AiravataClientException e) {
             logger.error("Error occured while creating the experiment...", e.getMessage());
             throw new AiravataClientException(e);
-        }catch (TException e) {
+        } catch (TException e) {
             logger.error("Error occured while creating the experiment...", e.getMessage());
             throw new TException(e);
         }
     }
-    public static String createUS3ExperimentForStampede (Airavata.Client client) throws AiravataSystemException, InvalidRequestException, AiravataClientException, TException  {
-        try{
+
+    public static String createUS3ExperimentForStampede(Airavata.Client client)
+            throws AiravataSystemException, InvalidRequestException, AiravataClientException, TException {
+        try {
             List<InputDataObjectType> exInputs = new ArrayList<InputDataObjectType>();
             InputDataObjectType input = new InputDataObjectType();
             input.setName("input");
@@ -277,50 +299,55 @@ public class CreateLaunchExperimentUS3 {
             input2.setName("mgroupcount");
             input2.setType(DataType.STRING);
             input2.setValue("-mgroupcount=1");
-            
+
             exInputs.add(input);
             exInputs.add(input1);
             exInputs.add(input2);
 
-
             List<OutputDataObjectType> exOut = new ArrayList<OutputDataObjectType>();
             OutputDataObjectType output = new OutputDataObjectType();
             output.setName("output");
             output.setType(DataType.URI);
             output.setValue("");
-//            OutputDataObjectType output1 = new OutputDataObjectType();
-//            output1.setName("stdout");
-//            output1.setType(DataType.STDOUT);
-//            output1.setValue("");
-//            OutputDataObjectType output2 = new OutputDataObjectType();
-//            output2.setName("stderr");
-//            output2.setType(DataType.STDERR);
-//            output2.setValue("");
+            //            OutputDataObjectType output1 = new OutputDataObjectType();
+            //            output1.setName("stdout");
+            //            output1.setType(DataType.STDOUT);
+            //            output1.setValue("");
+            //            OutputDataObjectType output2 = new OutputDataObjectType();
+            //            output2.setName("stderr");
+            //            output2.setType(DataType.STDERR);
+            //            output2.setValue("");
             exOut.add(output);
-//            exOut.add(output1);
-//            exOut.add(output2);
+            //            exOut.add(output1);
+            //            exOut.add(output2);
 
             Project project = ProjectModelUtil.createProject("project1", "admin", "test project");
             String projectId = client.createProject(new AuthzToken(""), DEFAULT_GATEWAY, project);
 
-	        ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY, projectId,
-			        "ultrascan", "US3ExperimentStampede", "US3AppStampede",
-			        "ultrascan_7ce6cd43-622c-44e0-87c5-fb7a6528c799", exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY,
+                    projectId,
+                    "ultrascan",
+                    "US3ExperimentStampede",
+                    "US3AppStampede",
+                    "ultrascan_7ce6cd43-622c-44e0-87c5-fb7a6528c799",
+                    exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling("stampede.tacc.xsede.org_e59e046f-e0e1-49c4-8475-2fab2e35d044", 32, 2, 0, "normal", 30, 0);
+            ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(
+                    "stampede.tacc.xsede.org_e59e046f-e0e1-49c4-8475-2fab2e35d044", 32, 2, 0, "normal", 30, 0);
 
             scheduling.setResourceHostId("stampede.tacc.xsede.org_e59e046f-e0e1-49c4-8475-2fab2e35d044");
             UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
-           
+
             userConfigurationData.setAiravataAutoSchedule(false);
             userConfigurationData.setOverrideManualScheduledParams(false);
             userConfigurationData.setComputationalResourceScheduling(scheduling);
-        
-/*            AdvancedOutputDataHandling dataHandling = new AdvancedOutputDataHandling();
+
+            /*            AdvancedOutputDataHandling dataHandling = new AdvancedOutputDataHandling();
             dataHandling.setOutputDataDir("/home/sgg/chathuri/laptop_backup/airavata");
             userConfigurationData.setAdvanceOutputDataHandling(dataHandling);*/
-        
+
             simpleExperiment.setUserConfigurationData(userConfigurationData);
             return client.createExperiment(new AuthzToken(""), DEFAULT_GATEWAY, simpleExperiment);
         } catch (AiravataSystemException e) {
@@ -332,13 +359,15 @@ public class CreateLaunchExperimentUS3 {
         } catch (AiravataClientException e) {
             logger.error("Error occured while creating the experiment...", e.getMessage());
             throw new AiravataClientException(e);
-        }catch (TException e) {
+        } catch (TException e) {
             logger.error("Error occured while creating the experiment...", e.getMessage());
             throw new TException(e);
         }
     }
-    public static String createUS3ExperimentForLonestar (Airavata.Client client) throws AiravataSystemException, InvalidRequestException, AiravataClientException, TException  {
-        try{
+
+    public static String createUS3ExperimentForLonestar(Airavata.Client client)
+            throws AiravataSystemException, InvalidRequestException, AiravataClientException, TException {
+        try {
             List<InputDataObjectType> exInputs = new ArrayList<InputDataObjectType>();
             InputDataObjectType input = new InputDataObjectType();
             input.setName("input");
@@ -352,7 +381,7 @@ public class CreateLaunchExperimentUS3 {
             input2.setName("mgroupcount");
             input2.setType(DataType.STRING);
             input2.setValue("-mgroupcount=1");
-            
+
             exInputs.add(input);
             exInputs.add(input1);
             exInputs.add(input2);
@@ -362,39 +391,45 @@ public class CreateLaunchExperimentUS3 {
             output.setName("output");
             output.setType(DataType.URI);
             output.setValue("");
-//            OutputDataObjectType output1 = new OutputDataObjectType();
-//            output1.setName("stdout");
-//            output1.setType(DataType.STDOUT);
-//            output1.setValue("");
-//            OutputDataObjectType output2 = new OutputDataObjectType();
-//            output2.setName("stderr");
-//            output2.setType(DataType.STDERR);
-//            output2.setValue("");
+            //            OutputDataObjectType output1 = new OutputDataObjectType();
+            //            output1.setName("stdout");
+            //            output1.setType(DataType.STDOUT);
+            //            output1.setValue("");
+            //            OutputDataObjectType output2 = new OutputDataObjectType();
+            //            output2.setName("stderr");
+            //            output2.setType(DataType.STDERR);
+            //            output2.setValue("");
             exOut.add(output);
-//            exOut.add(output1);
-//            exOut.add(output2);
-
-//            Project project = ProjectModelUtil.createProject("project1", "admin", "test project");
-//            String projectId = client.createProject(project);
-
-	        ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY,
-			        "ultrascan_41574ef5-b054-4d03-ab20-2cfe768d5096", "ultrascan", "US3ExperimentLonestar",
-			        "US3AppLonestar", "ultrascan_e76ab5cf-79f6-44df-a244-10a734183fec", exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            //            exOut.add(output1);
+            //            exOut.add(output2);
+
+            //            Project project = ProjectModelUtil.createProject("project1", "admin", "test project");
+            //            String projectId = client.createProject(project);
+
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY,
+                    "ultrascan_41574ef5-b054-4d03-ab20-2cfe768d5096",
+                    "ultrascan",
+                    "US3ExperimentLonestar",
+                    "US3AppLonestar",
+                    "ultrascan_e76ab5cf-79f6-44df-a244-10a734183fec",
+                    exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling("lonestar.tacc.teragrid.org_2e0273bc-324b-419b-9786-38a360d44772", 12, 2, 0, "normal", 30, 0);
+            ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(
+                    "lonestar.tacc.teragrid.org_2e0273bc-324b-419b-9786-38a360d44772", 12, 2, 0, "normal", 30, 0);
 
             scheduling.setResourceHostId("lonestar.tacc.teragrid.org_2e0273bc-324b-419b-9786-38a360d44772");
             UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
-           
+
             userConfigurationData.setAiravataAutoSchedule(false);
             userConfigurationData.setOverrideManualScheduledParams(false);
             userConfigurationData.setComputationalResourceScheduling(scheduling);
-        
-/*            AdvancedOutputDataHandling dataHandling = new AdvancedOutputDataHandling();
+
+            /*            AdvancedOutputDataHandling dataHandling = new AdvancedOutputDataHandling();
             dataHandling.setOutputDataDir("/home/airavata/output/");
             userConfigurationData.setAdvanceOutputDataHandling(dataHandling);*/
-        
+
             simpleExperiment.setUserConfigurationData(userConfigurationData);
             return client.createExperiment(new AuthzToken(""), DEFAULT_GATEWAY, simpleExperiment);
         } catch (AiravataSystemException e) {
@@ -406,13 +441,15 @@ public class CreateLaunchExperimentUS3 {
         } catch (AiravataClientException e) {
             logger.error("Error occured while creating the experiment...", e.getMessage());
             throw new AiravataClientException(e);
-        }catch (TException e) {
+        } catch (TException e) {
             logger.error("Error occured while creating the experiment...", e.getMessage());
             throw new TException(e);
         }
     }
-    public static String createUS3ExperimentForAlamo (Airavata.Client client) throws AiravataSystemException, InvalidRequestException, AiravataClientException, TException  {
-        try{
+
+    public static String createUS3ExperimentForAlamo(Airavata.Client client)
+            throws AiravataSystemException, InvalidRequestException, AiravataClientException, TException {
+        try {
             List<InputDataObjectType> exInputs = new ArrayList<InputDataObjectType>();
             InputDataObjectType input = new InputDataObjectType();
             input.setName("input");
@@ -426,50 +463,55 @@ public class CreateLaunchExperimentUS3 {
             input2.setName("mgroupcount");
             input2.setType(DataType.STRING);
             input2.setValue("-mgroupcount=1");
-            
+
             exInputs.add(input);
             exInputs.add(input1);
             exInputs.add(input2);
 
-
             List<OutputDataObjectType> exOut = new ArrayList<OutputDataObjectType>();
             OutputDataObjectType output = new OutputDataObjectType();
             output.setName("output");
             output.setType(DataType.URI);
             output.setValue("");
-//            OutputDataObjectType output1 = new OutputDataObjectType();
-//            output1.setName("stdout");
-//            output1.setType(DataType.STDOUT);
-//            output1.setValue("");
-//            OutputDataObjectType output2 = new OutputDataObjectType();
-//            output2.setName("stderr");
-//            output2.setType(DataType.STDERR);
-//            output2.setValue("");
+            //            OutputDataObjectType output1 = new OutputDataObjectType();
+            //            output1.setName("stdout");
+            //            output1.setType(DataType.STDOUT);
+            //            output1.setValue("");
+            //            OutputDataObjectType output2 = new OutputDataObjectType();
+            //            output2.setName("stderr");
+            //            output2.setType(DataType.STDERR);
+            //            output2.setValue("");
             exOut.add(output);
-//            exOut.add(output1);
-//            exOut.add(output2);
-
-//            Project project = ProjectModelUtil.createProject("project1", "admin", "test project");
-//            String projectId = client.createProject(project);
-
-	        ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY,
-			        "ultrascan_41574ef5-b054-4d03-ab20-2cfe768d5096", "ultrascan", "US3ExperimentStampede",
-			        "US3AppStampede", "ultrascan_e76ab5cf-79f6-44df-a244-10a734183fec", exInputs);
-	        simpleExperiment.setExperimentOutputs(exOut);
+            //            exOut.add(output1);
+            //            exOut.add(output2);
+
+            //            Project project = ProjectModelUtil.createProject("project1", "admin", "test project");
+            //            String projectId = client.createProject(project);
+
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY,
+                    "ultrascan_41574ef5-b054-4d03-ab20-2cfe768d5096",
+                    "ultrascan",
+                    "US3ExperimentStampede",
+                    "US3AppStampede",
+                    "ultrascan_e76ab5cf-79f6-44df-a244-10a734183fec",
+                    exInputs);
+            simpleExperiment.setExperimentOutputs(exOut);
 
-            ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling("alamo.uthscsa.edu_7b6cf99a-af2e-4e8b-9eff-998a5ef60fe5", 4, 2, 0, "default", 30, 0);
+            ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(
+                    "alamo.uthscsa.edu_7b6cf99a-af2e-4e8b-9eff-998a5ef60fe5", 4, 2, 0, "default", 30, 0);
 
             scheduling.setResourceHostId("alamo.uthscsa.edu_7b6cf99a-af2e-4e8b-9eff-998a5ef60fe5");
             UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
-           
+
             userConfigurationData.setAiravataAutoSchedule(false);
             userConfigurationData.setOverrideManualScheduledParams(false);
             userConfigurationData.setComputationalResourceScheduling(scheduling);
-        
-/*            AdvancedOutputDataHandling dataHandling = new AdvancedOutputDataHandling();
+
+            /*            AdvancedOutputDataHandling dataHandling = new AdvancedOutputDataHandling();
             dataHandling.setOutputDataDir("/home/airavata/output/");
             userConfigurationData.setAdvanceOutputDataHandling(dataHandling);*/
-        
+
             simpleExperiment.setUserConfigurationData(userConfigurationData);
             return client.createExperiment(new AuthzToken(""), DEFAULT_GATEWAY, simpleExperiment);
         } catch (AiravataSystemException e) {
@@ -481,13 +523,14 @@ public class CreateLaunchExperimentUS3 {
         } catch (AiravataClientException e) {
             logger.error("Error occured while creating the experiment...", e.getMessage());
             throw new AiravataClientException(e);
-        }catch (TException e) {
+        } catch (TException e) {
             logger.error("Error occured while creating the experiment...", e.getMessage());
             throw new TException(e);
         }
     }
-    public static String createExperimentForStampede(Airavata.Client client) throws TException  {
-        try{
+
+    public static String createExperimentForStampede(Airavata.Client client) throws TException {
+        try {
             List<InputDataObjectType> exInputs = new ArrayList<InputDataObjectType>();
             InputDataObjectType input = new InputDataObjectType();
             input.setName("echo_input");
@@ -505,12 +548,18 @@ public class CreateLaunchExperimentUS3 {
             Project project = ProjectModelUtil.createProject("project1", "admin", "test project");
             String projectId = client.createProject(new AuthzToken(""), DEFAULT_GATEWAY, project);
 
-            ExperimentModel simpleExperiment =
-                    ExperimentModelUtil.createSimpleExperiment(DEFAULT_GATEWAY,projectId, "admin", "US3EchoExperimentStatus", "US3EchoStampede", "US3EchoStampede", exInputs);
+            ExperimentModel simpleExperiment = ExperimentModelUtil.createSimpleExperiment(
+                    DEFAULT_GATEWAY,
+                    projectId,
+                    "admin",
+                    "US3EchoExperimentStatus",
+                    "US3EchoStampede",
+                    "US3EchoStampede",
+                    exInputs);
             simpleExperiment.setExperimentOutputs(exOut);
 
-            ComputationalResourceSchedulingModel scheduling =
-                    ExperimentModelUtil.createComputationResourceScheduling("stampede.tacc.xsede.org", 1, 1, 1, "development", 0, 0);
+            ComputationalResourceSchedulingModel scheduling = ExperimentModelUtil.createComputationResourceScheduling(
+                    "stampede.tacc.xsede.org", 1, 1, 1, "development", 0, 0);
             scheduling.setResourceHostId("gsissh-stampede");
             UserConfigurationDataModel userConfigurationData = new UserConfigurationDataModel();
             userConfigurationData.setAiravataAutoSchedule(false);
@@ -527,14 +576,13 @@ public class CreateLaunchExperimentUS3 {
         } catch (AiravataClientException e) {
             logger.error("Error occured while creating the experiment...", e.getMessage());
             throw new AiravataClientException(e);
-        }catch (TException e) {
+        } catch (TException e) {
             logger.error("Error occured while creating the experiment...", e.getMessage());
             throw new TException(e);
         }
     }
 
-    public static void launchExperiment (Airavata.Client client, String expId)
-            throws TException{
+    public static void launchExperiment(Airavata.Client client, String expId) throws TException {
         try {
             client.launchExperiment(new AuthzToken(""), expId, DEFAULT_GATEWAY);
         } catch (ExperimentNotFoundException e) {
@@ -549,7 +597,7 @@ public class CreateLaunchExperimentUS3 {
         } catch (AiravataClientException e) {
             logger.error("Error occured while launching the experiment...", e.getMessage());
             throw new AiravataClientException(e);
-        }catch (TException e) {
+        } catch (TException e) {
             logger.error("Error occured while launching the experiment...", e.getMessage());
             throw new TException(e);
         }
diff --git a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/ReplicaCatalogSample.java b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/ReplicaCatalogSample.java
index 01c4a68a5c..9659045b11 100644
--- a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/ReplicaCatalogSample.java
+++ b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/ReplicaCatalogSample.java
@@ -1,22 +1,22 @@
 /**
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
 package org.apache.airavata.client.samples;
 
 import org.apache.airavata.api.Airavata;
@@ -27,7 +27,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 public class ReplicaCatalogSample {
-    private final static Logger logger = LoggerFactory.getLogger(ReplicaCatalogSample.class);
+    private static final Logger logger = LoggerFactory.getLogger(ReplicaCatalogSample.class);
 
     public static final String THRIFT_SERVER_HOST = "gw56.iu.xsede.org";
     public static final int THRIFT_SERVER_PORT = 8930;
@@ -60,7 +60,6 @@ public class ReplicaCatalogSample {
             String productUri = client.registerDataProduct(authzToken, dataProductModel);
             System.out.println(productUri);
 
-
             dataProductModel = client.getDataProduct(authzToken, "airavata-dp://Eroma2016@seagrid:/");
             System.out.println(dataProductModel.getReplicaLocations().size());
         } catch (Exception e) {
diff --git a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/SampleEchoExperiment.java b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/SampleEchoExperiment.java
index aa335647d4..dcd8fd1584 100644
--- a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/SampleEchoExperiment.java
+++ b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/SampleEchoExperiment.java
@@ -1,24 +1,26 @@
 /**
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
 package org.apache.airavata.client.samples;
 
+import java.util.ArrayList;
+import java.util.List;
 import org.apache.airavata.api.Airavata;
 import org.apache.airavata.api.client.AiravataClientFactory;
 import org.apache.airavata.client.tools.RegisterSampleApplicationsUtils;
@@ -41,16 +43,13 @@ import org.apache.airavata.model.workspace.GatewayApprovalStatus;
 import org.apache.airavata.model.workspace.Project;
 import org.apache.thrift.TException;
 
-import java.util.ArrayList;
-import java.util.List;
-
 public class SampleEchoExperiment {
 
     private static final String THRIFT_SERVER_HOST = "127.0.0.1";
     private static final int THRIFT_SERVER_PORT = 8930;
 
     private Airavata.Client airavataClient;
-    private String localhostId ;
+    private String localhostId;
     private String echoModuleId;
     private String echoInterfaceId;
     private String echoExperimentId;
@@ -82,24 +81,27 @@ public class SampleEchoExperiment {
         return airavataClient.addGateway(new AuthzToken(""), gateway);
     }
 
-
     private void registerLocalhost() {
         try {
             System.out.println("\n #### Registering Localhost Computational Resource #### \n");
 
-            ComputeResourceDescription computeResourceDescription = RegisterSampleApplicationsUtils.
-                    createComputeResourceDescription("localhost", "LocalHost", null, null);
-            DataMovementInterface dataMovementInterface = new DataMovementInterface("localhost_data_movement_interface", DataMovementProtocol.LOCAL, 1);
+            ComputeResourceDescription computeResourceDescription =
+                    RegisterSampleApplicationsUtils.createComputeResourceDescription(
+                            "localhost", "LocalHost", null, null);
+            DataMovementInterface dataMovementInterface =
+                    new DataMovementInterface("localhost_data_movement_interface", DataMovementProtocol.LOCAL, 1);
             computeResourceDescription.addToDataMovementInterfaces(dataMovementInterface);
-            JobSubmissionInterface jobSubmissionInterface = new JobSubmissionInterface("localhost_job_submission_interface", JobSubmissionProtocol.LOCAL, 1);
+            JobSubmissionInterface jobSubmissionInterface =
+                    new JobSubmissionInterface("localhost_job_submission_interface", JobSubmissionProtocol.LOCAL, 1);
             computeResourceDescription.addToJobSubmissionInterfaces(jobSubmissionInterface);
 
             localhostId = airavataClient.registerComputeResource(new AuthzToken(""), computeResourceDescription);
-            ResourceJobManager resourceJobManager = RegisterSampleApplicationsUtils.
-                    createResourceJobManager(ResourceJobManagerType.FORK, null, null, null);
+            ResourceJobManager resourceJobManager = RegisterSampleApplicationsUtils.createResourceJobManager(
+                    ResourceJobManagerType.FORK, null, null, null);
             LOCALSubmission submission = new LOCALSubmission();
             submission.setResourceJobManager(resourceJobManager);
-            String localSubmission = airavataClient.addLocalSubmissionDetails(new AuthzToken(""), localhostId, 1, submission);
+            String localSubmission =
+                    airavataClient.addLocalSubmissionDetails(new AuthzToken(""), localhostId, 1, submission);
             System.out.println(localSubmission);
             System.out.println("LocalHost Resource Id is " + localhostId);
         } catch (TException e) {
@@ -109,29 +111,39 @@ public class SampleEchoExperiment {
 
     private void registerGatewayProfile() throws TException {
         GatewayResourceProfile gatewayResourceProfile = new GatewayResourceProfile();
-        ComputeResourcePreference localhostResourcePreference = RegisterSampleApplicationsUtils.
-                createComputeResourcePreference(localhostId, gatewayId, false, null, null, null, "/tmp");
+        ComputeResourcePreference localhostResourcePreference =
+                RegisterSampleApplicationsUtils.createComputeResourcePreference(
+                        localhostId, gatewayId, false, null, null, null, "/tmp");
         gatewayResourceProfile.setGatewayID(gatewayId);
         gatewayResourceProfile.addToComputeResourcePreferences(localhostResourcePreference);
         airavataClient.registerGatewayResourceProfile(new AuthzToken(""), gatewayResourceProfile);
     }
 
-
     private void registerEchoModule() throws TException {
-        //Register Echo
-        echoModuleId = airavataClient.registerApplicationModule(new AuthzToken(""), gatewayId,
-                RegisterSampleApplicationsUtils.createApplicationModule(
-                        "Echo", "1.0", "Echo application description"));
+        // Register Echo
+        echoModuleId = airavataClient.registerApplicationModule(
+                new AuthzToken(""),
+                gatewayId,
+                RegisterSampleApplicationsUtils.createApplicationModule("Echo", "1.0", "Echo application description"));
     }
 
     private void registerEchoDeployment() throws TException {
         System.out.println("#### Registering Application Deployments on Localhost ####");
-        //Register Echo
-        String echoAppDeployId = airavataClient.registerApplicationDeployment(new AuthzToken(""), gatewayId,
-                RegisterSampleApplicationsUtils.createApplicationDeployment(echoModuleId, localhostId, "/bin/echo",
-                        ApplicationParallelismType.SERIAL, "Echo application description",
-                        null, null, null));
-        System.out.println("Successfully registered Echo application on localhost, application Id = " + echoAppDeployId);
+        // Register Echo
+        String echoAppDeployId = airavataClient.registerApplicationDeployment(
+                new AuthzToken(""),
+                gatewayId,
+                RegisterSampleApplicationsUtils.createApplicationDeployment(
+                        echoModuleId,
+                        localhostId,
+                        "/bin/echo",
+                        ApplicationParallelismType.SERIAL,
+                        "Echo application description",
+                        null,
+                        null,
+                        null));
+        System.out.println(
+                "Successfully registered Echo application on localhost, application Id = " + echoAppDeployId);
     }
 
     private void registerEchoInterface() {
... 110965 lines suppressed ...