protected void mapAttributesToRequestedClaims(final WSFederationRegisteredService service,
                                                  final SecurityTokenServiceClient sts,
                                                  final TicketValidationResult assertion) throws Exception {
        val writer = new W3CDOMStreamWriter();
        writer.writeStartElement("wst", "Claims", STSUtils.WST_NS_05_12);
        writer.writeNamespace("wst", STSUtils.WST_NS_05_12);
        writer.writeNamespace("ic", WSFederationConstants.HTTP_SCHEMAS_XMLSOAP_ORG_WS_2005_05_IDENTITY);
        writer.writeAttribute("Dialect", WSFederationConstants.HTTP_SCHEMAS_XMLSOAP_ORG_WS_2005_05_IDENTITY);

        writeAttributes(writer, assertion, service);

        writer.writeEndElement();
        val claims = writer.getDocument().getDocumentElement();
        sts.setClaims(claims);
    }
This is {@link DefaultRelyingPartyTokenProducer}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-ws-idp/src/main/java/org/apereo/cas/ws/idp/services/DefaultRelyingPartyTokenProducer.java