public static ApplicationDescription registerApplication(String appName, String exeuctableLocation, String scratchWorkingDirectory, String hostName, String projAccNumber, String queueName, String cpuCount, String nodeCount, String maxMemory) throws Exception { // Create Application Description ApplicationDescription appDesc = new ApplicationDescription(HpcApplicationDeploymentType.type); HpcApplicationDeploymentType app = (HpcApplicationDeploymentType) appDesc.getType(); app.setCpuCount(Integer.parseInt(cpuCount)); app.setNodeCount(Integer.parseInt(nodeCount)); ApplicationDeploymentDescriptionType.ApplicationName name = appDesc.getType().addNewApplicationName(); name.setStringValue(appName); app.setExecutableLocation(exeuctableLocation); app.setScratchWorkingDirectory(scratchWorkingDirectory); ProjectAccountType projectAccountType = ((HpcApplicationDeploymentType) appDesc.getType()).addNewProjectAccount(); projectAccountType.setProjectAccountNumber(projAccNumber); QueueType queueType = app.addNewQueue(); queueType.setQueueName(queueName); app.setMaxMemory(Integer.parseInt(maxMemory)); return appDesc; }