@RequestMapping(value = "/wfstepAdvanceSearch", method = RequestMethod.GET)
  public String wfstepAdvanceSearch(
      @ModelAttribute("wfstepAdd") WFStep wfstep,
      HttpServletRequest request,
      HttpServletResponse response) {

    String name1 = "wfstepId", s1 = null, s2 = null;

    List<Object[]> returnString = null;

    wfstepList = new ArrayList();
    wfstep.setAdvanceSearchHidden(1);
    try {
      returnString = xmlService.populateXml(name1);
      // Iterator it=returnString.iterator();
      for (Object[] object : returnString) {
        WFStep v = new WFStep();

        s1 = (String) object[0];
        s2 = (String) object[1];

        v.setFirstLabel(s1);
        v.setSecondLabel(s2);
        wfstepList.add(v);
      }

    } catch (Exception e) {
      e.printStackTrace();
    }

    request.setAttribute("wfstepSearchAdvance", wfstepList);

    return "wfstepHome";
  }
  @RequestMapping(value = "/vendorReturnAdvanceSearch", method = RequestMethod.GET)
  public String vendorReturnAdvanceSearch(
      @ModelAttribute("vendorReturnCommand") VendorReturn vendorReturn,
      HttpServletRequest request,
      HttpServletResponse response) {

    String name1 = "vendorReturn", s1 = null, s2 = null;

    List<Object[]> returnString = null;

    vrList = new ArrayList<VendorReturn>();
    vendorReturn.setAdvanceSearchHidden(1);
    try {
      returnString = xmlService.populateXml(name1);

      for (Object[] object : returnString) {
        VendorReturn vend = new VendorReturn();

        s1 = (String) object[0];
        s2 = (String) object[1];
        vend.setFirstLabel(s1);

        vend.setSecondLabel(s2);
        vrList.add(vend);
      }

    } catch (Exception e) {
      e.printStackTrace();
    }

    request.setAttribute("vendorReturnSearchAdvance", vrList);
    return "vendorReturnHome";
  }