Made public ResourceRepository::prepareQueryBuilder()