private static XAttributeMap copyAttMap(XAttributeMap srcAttMap) {
   XAttributeMap destAttMap = new XAttributeMapImpl();
   Iterator<XAttribute> attit = srcAttMap.values().iterator();
   while (attit.hasNext()) {
     XAttribute att = attit.next();
     String key = att.getKey();
     att = (XAttribute) att.clone();
     destAttMap.put(key, att);
   }
   return destAttMap;
 }
 private void putTimestamp(XAttributeMap attMap, String key, Date value) {
   attMap.put(key, new XAttributeTimestampImpl(key, value));
 }
 private void putLiteral(XAttributeMap attMap, String key, String value) {
   attMap.put(key, new XAttributeLiteralImpl(key, value));
 }