@Override
    @CanIgnoreReturnValue
    @JsonIgnore
    public WebApplicationService setFragment(final String fragment) {
        if (StringUtils.isNotBlank(fragment)) {
            this.id = collectFragmentFor(this.id, fragment);
            this.originalUrl = collectFragmentFor(this.originalUrl, fragment);
        }
        return this;
    }
Abstract implementation of a WebApplicationService.

@author Scott Battaglia
@since 3.1
core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/AbstractWebApplicationService.java