mergeAttrsAndNodes (map, node.getChildNodes ());
  public static AggregateAsset getAggregate(LDMServesPlugIn ldm, Node node){    AggregateAsset newAsset = null;    if (node.getNodeName().toLowerCase().equals("aggregateasset")){      NamedNodeMap map = node.getAttributes ();      mergeAttrsAndNodes (map, node.getChildNodes ());      Node prototypeNode = map.getNamedItem("prototype");      Node quantityNode  = map.getNamedItem("quantity");      String prototype;      int quantity;      try {	quantity = (new Integer(quantityNode.getNodeValue())).intValue();      } catch (NullPointerException npe) {	System.out.println (classname + 			    ".getAggregate - XML syntax error : expecting *quantity* attribute on tag <" + 			    node.getNodeName() + "> or child node.");	return null;      }      try {	prototype = prototypeNode.getNodeValue ();      } catch (NullPointerException npe) {	System.out.println (classname + 			    ".getAggregate - XML syntax error : expecting *prototype* attribute on tag <" + 			    node.getNodeName() + "> or child node.");	return null;      }            if (testing) 	System.out.println ("Creating " + quantity + " of "  + prototype);      Asset proto = ldm.getFactory().getPrototype(prototype);	        if (proto == null)	System.out.println (classname + 			    ".getAggregate - XML syntax error : no prototype " + prototype + 			    " known. Check cluster's ldm.xml file to make sure " + prototype + 			    "'s prototype file is included.");       else {	newAsset = (AggregateAsset)ldm.getFactory().createAggregate(proto, quantity);	if (testing)	  System.out.println (classname + ".getAggregate - Creating agg asset " + newAsset);	Schedule sched = getSchedule (ldm, node.getChildNodes ());	if (sched != null)	  setSchedule (ldm, newAsset, sched);      }    }    else {      System.out.println (classname + 			  ".getAggregate - XML syntax error : expecting <AggregateAsset> instead got <" + 			  node.getNodeName() + ">");     }    return newAsset;  }