code: @SuppressWarnings(UNCHECKED)
      protected Set<E> set(Criteria criteria)
      {
          return new HashSet<E>(criteria.list());
      }
docs: Returns a set of entities based on the provided criteria.
  
  @param criteria the criteria
  @return a set of entities based on the provided criteria