prefix = (j < 10) ? "0" : "";
prefix = (j < 9) ? "0" : "";
  public List getInstance(LDMServesPlugin ldm, Node node){    Schedule newSchedule = null;     List newAssets = new ArrayList ();    if(node.getNodeName().equals("instance")){      NodeList  nlist    = node.getChildNodes();            int       nlength  = nlist.getLength();      String id        = node.getAttributes().getNamedItem("id").getNodeValue();      String prototype = node.getAttributes().getNamedItem("prototype").getNodeValue();            // Only expect one schedule per instance but what the heck.      for(int i = 0; i < nlength; i++) {	Node    child       = nlist.item(i);	if(child.getNodeType() == Node.ELEMENT_NODE) {	  if(child.getNodeName().equals("schedule")){	    newSchedule = scheduleParser.getSchedule(ldm, child);	  }	}      }      Integer intQ = new Integer (1);      if (node.getAttributes().getNamedItem("quantity") != null) {	String quantity = node.getAttributes().getNamedItem("quantity").getNodeValue();	intQ = new Integer(quantity);      }      for (int j = 0; j < intQ.intValue(); j++) {	String newID = id;	String prefix = "";	// we want id's less than 10 to be 01, 02, etc. instead of 0,1,2	if (intQ.intValue () > 1) {	  prefix = (j < 10) ? "0" : "";	  newID = newID + "-" + prefix+(j+1);	}	newAssets.add (makeNewAsset(ldm, prototype, newID, newSchedule));      }      return newAssets;    }    // Should not get here should throw a runtimeexception    return null;  }