String path = paths.toArray(new String[0])[0];
if (depth == 0) {
queryBuilder = queryBuilder.is(path);
} else {
Pattern pattern = createPrefixRegExp(path);
queryBuilder = queryBuilder.regex(pattern);
}
}
if (revisionId > -1) {
queryBuilder = queryBuilder.and(MongoNode.KEY_REVISION_ID).lessThanEquals(revisionId);