public void changeMapping(
      OrmSpecifiedPersistentAttribute attribute,
      OrmAttributeMapping oldMapping,
      OrmAttributeMapping newMapping) {
    // keep the context model in sync with each change to the resource model
    int sourceIndex = this.specifiedAttributes.indexOf(attribute);
    this.specifiedAttributes.remove(sourceIndex);
    oldMapping.removeXmlAttributeMappingFrom(this.getXmlAttributes());

    int targetIndex = this.getSpecifiedAttributeInsertionIndex(attribute);
    this.specifiedAttributes.add(targetIndex, attribute);
    newMapping.addXmlAttributeMappingTo(this.getXmlAttributes());

    oldMapping.initializeOn(newMapping);

    this.fireItemMoved(SPECIFIED_ATTRIBUTES_LIST, targetIndex, sourceIndex);
  }
 public void initializeOn(OrmAttributeMapping newMapping) {
   newMapping.initializeFromOrmAttributeMapping(this);
 }