code: static <E> List<E> toEntities(Class<E> entityClass, Entity[] nativeEntities) {
      if (nativeEntities == null || nativeEntities.length == 0) {
        return new ArrayList<>();
      }
      return toEntities(entityClass, Arrays.asList(nativeEntities));
    }
docs: Converts the given array of native entities to a list of model objects of given type,
  <code>entityClass</code>.
  
  @param entityClass
  the entity class
  @param nativeEntities
  native entities to convert
  @return the list of model objects