synchronized (entityManager) {
LOGGER.debug("Get matching revisions for the request {}", request);
CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();
CriteriaQuery query = criteriaBuilder.createQuery();
Root<JPACommit> from = query.from(JPACommit.class);
query.multiselect(from.get("committer"), from.get("timestamp"), from.get("context"), from.get("comment"),
from.get("revision"), from.get("parent"), from.get("domainId"), from.get("connectorId"),
from.get("instanceId"));
Predicate[] predicates = convertCommitRequestToPredicates(criteriaBuilder, from, request);
query.where(criteriaBuilder.and(predicates));