public static QueryFunction query(Criteria criteria) {

		Assert.notNull(criteria, "Cannot create query function for 'null' criteria.");
		return query(new SimpleQuery(criteria));
	}
public static QueryFunction query ( Criteria criteria ) { Assert . notNull ( criteria , "Cannot create query function for 'null' criteria." ) ; return query ( new SimpleQuery ( criteria ) ) ; }
@param criteria
@return