code: public Object fromNeo4JObject(Object source, Field field)
      {
          Class<?> targetClass = field.getType();
  
          if (targetClass.isAssignableFrom(BigDecimal.class) || targetClass.isAssignableFrom(BigInteger.class))
          {
              return PropertyAccessorHelper.fromSourceToTargetClass(field.getType(), source.getClass(), source);
          }
          else if (targetClass.isAssignableFrom(Calendar.class) || targetClass.isAssignableFrom(GregorianCalendar.class))
          {
              Date d = (Date) PropertyAccessorHelper.fromSourceToTargetClass(Date.class, source.getClass(), source);
              Calendar cal = Calendar.getInstance();
              cal.setTime(d);
              return cal;
          }
          else if (targetClass.isAssignableFrom(Date.class))
          {
              return PropertyAccessorHelper.fromSourceToTargetClass(field.getType(), source.getClass(), source);
          }
          else
          {
              return source;
          }
  
      }
docs: Converts a property stored in Neo4J (nodes or relationship) to
  corresponding entity field value