private static Optional<Boolean> shouldHttpHeaderBeInjectedIntoResponse(final Optional<RegisteredService> registeredService,
                                                                            final RegisteredServiceProperties property) {
        val propValue = getStringProperty(registeredService, property);
        if (propValue != null) {
            return Optional.of(BooleanUtils.toBoolean(propValue));
        }
        return Optional.empty();
    }
This is {@link RegisteredServiceResponseHeadersEnforcementFilter}. A filter extension that looks at the properties of a
registered service to determine if headers should be injected into the response.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-web-api/src/main/java/org/apereo/cas/services/web/support/RegisteredServiceResponseHeadersEnforcementFilter.java