if (instantiationMapping instanceof ConstructorMapping &&
def.getInstantiationMapping().getMappings().length == 0 &&
def.getMappingClass().getDeclaredConstructor(toMerge.getInstantiationMapping().getSignature()) != null) {
final ConstructorMapping parentConstructorMapping = (ConstructorMapping) toMerge.getInstantiationMapping();
final MetaClass mergingClass = def.getMappingClass();
if (parentConstructorMapping instanceof SimpleConstructorMapping) {
final ConstructorMapping newMapping = ((SimpleConstructorMapping) parentConstructorMapping)
.getCopyForInheritance();
newMapping.setMappingClass(mergingClass);
def.setInheritedInstantiationMapping(newMapping);
}
}
if (log.isDebugEnabled())