Can you add: public ResultList getResultsWithConstraint(String query, Constraint constraint)