code: @SuppressWarnings(UNCHECKED)
      protected List<E> list(Query query)
      {
          return new ArrayList<E>(query.list());
      }
docs: Returns a list of entities based on the provided query.
  
  @param query the query
  @return a list of entities based on the provided query