l1.conveyanceUID="UID35463"; l1.addCarriedAsset("UID234");
l1.conveyanceUID=UID.toUID("UID35463"); l1.addCarriedAsset(UID.toUID("UID/234"));
  public static void testLegs() throws SAXException, IOException{      XMLWriter stdOut = new XMLWriter(new BufferedWriter	(new OutputStreamWriter(System.out)), true);      StringWriter strOut = new StringWriter();      XMLWriter out = new XMLWriter(strOut);      out.writeHeader();            LegsData ld1 = new LegsData();      Leg l1 = new Leg();      l1.UID="UID1";      l1.startTime=123121;      l1.endTime=2134123;      l1.startLoc="gsds";      l1.endLoc="fdss";      l1.legType=Leg.LEG_TYPE_TRANSPORTING;      l1.conveyanceUID="UID35463";      l1.addCarriedAsset("UID234");      ld1.addLeg(l1);      ld1.toXML(out);      out.flush();      out.close();      /*      stdOut.write("\nObj->XML:\n");      stdOut.write(strOut.getBuffer().toString());      stdOut.flush();      */      DeXMLizer dx = new DeXMLizer(new LegsDataFactory());      Reader strIn = new StringReader(strOut.getBuffer().toString());      DeXMLable obj = dx.parseObject(strIn);      stdOut.write("\nObj->XML->OBJ->XML:\n");            ((XMLable)obj).toXML(stdOut);      stdOut.flush();  }