protected Service createService(final String identifier, final Service original) {
        val result = webApplicationServiceFactory.createService(identifier);
        val attributes = new LinkedHashMap<>(original.getAttributes());
        attributes.put(Service.class.getName(), CollectionUtils.wrapList(original.getOriginalUrl()));
        result.setAttributes(attributes);
        return result;
    }
This is {@link BaseAuthenticationServiceSelectionStrategy}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/BaseAuthenticationServiceSelectionStrategy.java