public static Object getTranslatedObject ( Object value , Class < ? > sourceClass , Class < ? > targetClass ) { if ( sourceClass . isAssignableFrom ( Date . class ) ) { value = PropertyAccessorHelper . fromDate ( targetClass , sourceClass , value ) ; } else { value = PropertyAccessorHelper . fromSourceToTargetClass ( targetClass , sourceClass , value ) ; } return value ; }
Gets the translated object .