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 OrmConverter buildMapKeyConverter(OrmConverter.Adapter converterAdapter) {
   return (converterAdapter != null)
       ? converterAdapter.buildNewConverter(this, this.getContextModelFactory())
       : this.nullConverter;
 }