* @param configuration IntrospectionConfiguration, not null
*/
private void configureDescriptor(
NodeDescriptor descriptor,
IntrospectionConfiguration configuration) {
NameMapper nameMapper = configuration.getElementNameMapper();
if (descriptor instanceof AttributeDescriptor) {
// we want to use the attributemapper only when it is an attribute..
nameMapper = configuration.getAttributeNameMapper();
}
descriptor.setLocalName( nameMapper.mapTypeToElementName( propertyName ));
descriptor.setPropertyName( getPropertyName() );
descriptor.setPropertyType( getPropertyType() );
}