class MongoDbPageRepository implements PageRepository {

    @Override
    public List<Page> getPagesForContextType(String contextId, String pageType) {
        return template.find(query(where("pageType").is(getString(pageType)).andOperator(where("contextId").is(contextId))));
    }

}