/**
  * Return the first adapter whose converter value is set in the XML mapping. Return <code>null
  * </code> if there are no converter values in the XML.
  */
 protected OrmConverter.Adapter getXmlMapKeyConverterAdapter() {
   for (OrmConverter.Adapter adapter : this.getMapKeyConverterAdapters()) {
     if (adapter.isActive(this.xmlAttributeMapping)) {
       return adapter;
     }
   }
   return null;
 }
 /** Return the converter adapter for the specified converter type. */
 protected OrmConverter.Adapter getMapKeyConverterAdapter(
     Class<? extends Converter> converterType) {
   for (OrmConverter.Adapter adapter : this.getMapKeyConverterAdapters()) {
     if (adapter.getConverterType() == converterType) {
       return adapter;
     }
   }
   return null;
 }
 protected OrmConverter buildMapKeyConverter() {
   OrmXmlContextModelFactory factory = this.getContextModelFactory();
   for (OrmConverter.Adapter adapter : this.getMapKeyConverterAdapters()) {
     OrmConverter ormConverter = adapter.buildConverter(this, factory);
     if (ormConverter != null) {
       return ormConverter;
     }
   }
   return this.nullConverter;
 }
 protected void syncMapKeyConverter() {
   OrmConverter.Adapter adapter = this.getXmlMapKeyConverterAdapter();
   if (adapter == null) {
     if (this.mapKeyConverter.getType() != null) {
       this.setMapKeyConverter_(this.nullConverter);
     }
   } else {
     if (this.mapKeyConverter.getType() == adapter.getConverterType()) {
       this.mapKeyConverter.synchronizeWithResourceModel();
     } else {
       this.setMapKeyConverter_(adapter.buildNewConverter(this, this.getContextModelFactory()));
     }
   }
 }
 protected void clearXmlMapKeyConverterValues() {
   for (OrmConverter.Adapter adapter : this.getMapKeyConverterAdapters()) {
     adapter.clearXmlValue(this.xmlAttributeMapping);
   }
 }
 protected OrmConverter buildMapKeyConverter(OrmConverter.Adapter converterAdapter) {
   return (converterAdapter != null)
       ? converterAdapter.buildNewConverter(this, this.getContextModelFactory())
       : this.nullConverter;
 }