x2 = XPath.newInstance("//job/monitor/script[@java_class='sos.scheduler.managed.configuration.ConfigurationOrderMonitor']");
listOfElement2 = x2.selectNodes(currDom.getDoc());
if(listOfElement2.isEmpty()) {
XPath x3 = XPath.newInstance("//job");
List listOfElement3 = x3.selectNodes(currDom.getDoc());
if(!listOfElement3.isEmpty()) {
Element job = (Element)listOfElement3.get(0);
addMonitoring(job, currDom);
currDom.writeElement(currDom.getFilename(), currDom.getDoc());
MainWindow.getContainer().getCurrentTab().setData("ftp_details_parameter_file", hotFolderfilename);