//finished construction of job object
System.out.println(jobDescriptor.toXML());
for (int i = 0; i < 1; i++) {
String jobID = pbsCluster.submitBatchJob(jobDescriptor);
System.out.println("Job submitted successfully, Job ID: " + jobID);
MonitorID monitorID = new HPCMonitorID(hostDescription, jobID,null,null,null, "ogce");
((HPCMonitorID)monitorID).setAuthenticationInfo(authenticationInfo);
try {
org.apache.airavata.gfac.monitor.util.CommonUtils.addMonitortoQueue(pullQueue, monitorID);
} catch (Exception e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.