code: public Criteria copy(boolean includeGroupBy, boolean includeOrderBy, boolean includePrefetchedRelationships)
      {
          Criteria copy = new Criteria();
  
          copy.m_criteria = new Vector(this.m_criteria);
          copy.m_negative = this.m_negative;
  
          if (includeGroupBy)
          {
              copy.groupby = this.groupby;
          }
          if (includeOrderBy)
          {
              copy.orderby = this.orderby;
          }
          if (includePrefetchedRelationships)
          {
              copy.prefetchedRelationships = this.prefetchedRelationships;
          }
  
          return copy;
      }
docs: make a copy of the criteria
  @param includeGroupBy if true
  @param includeOrderBy if ture
  @param includePrefetchedRelationships if true
  @return a copy of the criteria