protected void writeAttributes(final XMLStreamWriter writer,
                                   final TicketValidationResult assertion,
                                   final WSFederationRegisteredService service) {
        attributeWriter.write(writer, assertion.getPrincipal(), service);
    }
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