private void prepareArtifactContext(final Response samlResponse, final MessageContext ctx) {
        val art = ctx.ensureSubcontext(SAMLArtifactContext.class);
        Objects.requireNonNull(art).setArtifactType(SAML2ArtifactType0004.TYPE_CODE);
        art.setSourceEntityId(samlResponse.getIssuer().getValue());
        val svc = adaptor.getAssertionConsumerServiceForArtifactBinding();
        art.setSourceArtifactResolutionServiceEndpointIndex(svc.getIndex());
        art.setSourceArtifactResolutionServiceEndpointURL(svc.getLocation());
    }
This is {@link SamlResponseArtifactEncoder}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/encoder/sso/SamlResponseArtifactEncoder.java