private boolean isReferenceNameInReferenceMappings(String referenceName) {
   Collection<ReferenceMapping> col = getReferenceMappings();
   for (ReferenceMapping rm : col) if (rm.getReference().equals(referenceName)) return true;
   return false;
 }
 public void addReferenceMapping(ReferenceMapping referenceMapping) throws XavaException {
   if (referenceMappings == null) referenceMappings = new HashMap();
   referenceMappings.put(referenceMapping.getReference(), referenceMapping);
   referenceMapping.setContainer(this);
 }