code: 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;
      }
docs: Gets the translated object.
  
  @param value
  the value
  @param sourceClass
  the source class
  @param targetClass
  the target class
  @return the translated object