code: protected <T extends SAMLObject> void prepareOutboundContext(final T samlObject,
                                                                   final SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
                                                                   final MessageContext<T> outboundContext,
                                                                   final String binding,
                                                                   final RequestAbstractType authnRequest) throws SamlException {
  
          LOGGER.trace("Outbound saml object to use is [{}]", samlObject.getClass().getName());
          outboundContext.setMessage(samlObject);
          SamlIdPUtils.preparePeerEntitySamlEndpointContext(authnRequest, outboundContext, adaptor, binding);
      }
docs: Prepare outbound context.
  
  @param <T>             the type parameter
  @param samlObject      the saml object
  @param adaptor         the adaptor
  @param outboundContext the outbound context
  @param binding         the binding
  @param authnRequest    the authn request
  @throws SamlException the saml exception