@Override
    protected boolean hasCorsConfigurationSource(@Nonnull final Object handler) {
        return this.corsConfiguration != null;
    }
This is {@link RestActuatorEndpointHandlerMapping}.

@author Misagh Moayyed
@since 7.1.0
api/cas-server-core-api-util/src/main/java/org/apereo/cas/util/spring/RestActuatorEndpointHandlerMapping.java