private static boolean isEntity(java.lang.reflect.Field field) {
   TypeInformation typeInformation = ClassTypeInformation.from(field.getType());
   TypeInformation<?> actualType = typeInformation.getActualType();
   boolean isComplexType =
       actualType == null ? false : !SIMPLE_TYPE_HOLDER.isSimpleType(actualType.getType());
   return isComplexType
       && !actualType.isCollectionLike()
       && !Map.class.isAssignableFrom(typeInformation.getType());
 }
 /**
  * Check that the given type is of "simple type".
  *
  * @param type the type to check.
  * @return if its simple type or not.
  */
 public boolean isSimpleType(final Class<?> type) {
   return simpleTypeHolder.isSimpleType(type);
 }