iter = MetadataUtils.getChildrenByTagName(slaveElement,"sender-job"); while (iter.hasNext())
iter2 = MetadataUtils.getChildrenByTagName(slaveElement,"sender-job"); while (iter2.hasNext())
   public void importXML(Element el) throws ConfigurationException   {      log.info("Loading test:" + el.getNodeName());            name = MetadataUtils.getElementAttribute(el, "name");            log.info("Test Name is " + name);            Iterator iter = MetadataUtils.getChildrenByTagName(el,"slave");            while (iter.hasNext())      {         log.info("Got slave element");                  Element slaveElement = (Element)iter.next();         String slaveName = MetadataUtils.getElementAttribute(slaveElement, "name");         log.info("Slave name is: " + slaveName);         Element locatorElement = MetadataUtils.getUniqueChild(slaveElement, "slave-locator");         String slaveLocator = MetadataUtils.getElementContent(locatorElement);         SlaveInfo slaveInfo = new SlaveInfo(slaveName, slaveLocator);         slaveInfos.add(slaveInfo);                  iter = MetadataUtils.getChildrenByTagName(slaveElement,"drain-job");               while (iter.hasNext())         {            Element elChild = (Element)iter.next();            DrainJob job= new DrainJob(elChild);            slaveInfo.addJob(job);            log.info("Added drain job");         }                  iter = MetadataUtils.getChildrenByTagName(slaveElement,"fill-job");               while (iter.hasNext())         {            Element elChild = (Element)iter.next();            FillJob job= new FillJob(elChild);            slaveInfo.addJob(job);            log.info("Added fill job");         }                  iter = MetadataUtils.getChildrenByTagName(slaveElement,"sender-job");               while (iter.hasNext())         {            Element elChild = (Element)iter.next();            SenderJob job= new SenderJob(elChild);            slaveInfo.addJob(job);            log.info("Added sender job");         }                  iter = MetadataUtils.getChildrenByTagName(slaveElement, "receiver-job");               while (iter.hasNext())         {            Element elChild = (Element)iter.next();            ReceiverJob job= new ReceiverJob(elChild);            slaveInfo.addJob(job);            log.info("Added receiver job");         }               }      }