return _criteria != null ? _criteria.list() :
return unique ? _criteria.uniqueResult() :
    public Object doInHibernate(Session session)        throws HibernateException, SQLException    {        try {            enableFilters(session);            buildQuery(session);                        if ( _query == null && _criteria == null )            {                throw new IllegalStateException(                        "buildQuery did not properly define a Query or " +                        "Criteria\n by calling setQuery() or setCriteria()."                );            }            boolean unique = params.getFilter().isUnique();                        if ( _query != null )            {                _query.setFirstResult( params.getFilter().firstResult() );                _query.setMaxResults( params.getFilter().maxResults() );                return unique ?                         _query.uniqueResult() :                            _query.list();            } else {                _criteria.setFirstResult( params.getFilter().firstResult() );                _criteria.setMaxResults( params.getFilter().maxResults() );                return _criteria != null ?                         _criteria.list() :                             _criteria.list();            }                    } finally {            disableFilters(session);        }    }