private Method getPropertySourceMethod ( Object sourceObject , Object destinationObject , String destinationProperty ) { BeanToBeanMapping beanToBeanMapping = beanToBeanMappings . get ( ClassPair . get ( sourceObject . getClass ( ) , destinationObject . getClass ( ) ) ) ; String sourceProperty = null ; if ( beanToBeanMapping != null ) { sourceProperty = beanToBeanMapping . getSourceProperty ( destinationProperty ) ; } if ( sourceProperty == null ) { sourceProperty = destinationProperty ; } return BeanUtils . getGetterPropertyMethod ( sourceObject . getClass ( ) , sourceProperty ) ; }
get the property source method corresponding to given destination property