if (profile instanceof TypeMappingProfile) {
name = ((TypeMappingProfile)profile).name(binding);
}
else if (profile instanceof Schema){
Schema schema = (Schema) profile;
for (Map.Entry<Name,AttributeType> e : schema.entrySet()) {
AttributeType at = e.getValue();
if (at.getBinding() != null && at.getBinding().equals(binding)) {
name = at.getName();
break;
}