// Filter query
if (StringUtils.isNotBlank(filter)) {
if ("/".equals(filter)) {
q.withPath("/");
} else if (filter.contains("state:work")) {
q.withVersion(Resource.WORK);
q.withPreferredVersion(-1);
} else if (filter.contains("state:live")) {
q.withVersion(Resource.LIVE);
q.withPreferredVersion(-1);
} else if (filter.contains("state:locked")) {