@Override
    public boolean isEnabled() {
        return casProperties.getServiceRegistry().getCore().isIndexServices();
    }
This is {@link DefaultRegisteredServiceIndexService}.

@author Misagh Moayyed
@since 7.3.0
core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/query/DefaultRegisteredServiceIndexService.java