@RequestMapping(value = BASE_MAPPING + "/search", method = GET)
public ResponseEntity<?> filterEntities(DomainTypeAdministrationConfiguration domainTypeAdministrationConfiguration, RootResourceInformation repoRequest, PersistentEntityResourceAssembler assembler, WebRequest request, Pageable pageable, @PathVariable String scopeName) throws Exception {
DynamicRepositoryInvoker repositoryInvoker = (DynamicRepositoryInvoker) repoRequest.getInvoker();
PersistentEntity<?, ?> persistentEntity = repoRequest.getPersistentEntity();
final ScopeMetadata scope = domainTypeAdministrationConfiguration.getScopes().getScope(scopeName);
final Specification filterSpecification = specificationFromRequest(request, persistentEntity);
if (isPredicateScope(scope)) {
final PredicateScopeMetadata predicateScope = (PredicateScopeMetadata) scope;