protected Optional<String> getArtifactParameter(final WebContext context) {
        if (configuration.getProtocol() == CasProtocol.SAML) {
            val optValue = context.getRequestParameter(Protocol.SAML11.getArtifactParameterName());
            if (optValue.isPresent()) {
                return optValue;
            }
        }
        return context.getRequestParameter(CasConfiguration.TICKET_PARAMETER);
    }
<p>getArtifactParameter.</p>

@param context a {@link WebContext} object
@return a {@link Optional} object
pac4j-cas/src/main/java/org/pac4j/cas/credentials/extractor/CasCredentialsExtractor.java