Refactoring doExecute() and evalWhereClause()