public Bean getTargetTypeFromCallMappingObject (String objectName, BeanMapping beanMapping) {
return getTypeFromCallMappingObject(objectName, beanMapping, "TARGET");
}
public Bean getTypeFromCallMappingObject (String objectName, BeanMapping beanMapping, String direction) {
BeanMap beanMap = beanMapping.getBeanMap();
BeanMapping beanMappingCalled = getBeanMapping(objectName, beanMap);
if (direction.equals("ORIGIN"))
return mappingMapBeanUtils.getBean(beanMap, beanMappingCalled.getOriginBean()) ;
if (direction.equals("TARGET"))
return mappingMapBeanUtils.getBean(beanMap, beanMappingCalled.getTargetBean()) ;