code: public void writeIdentity(List<IdentityToken> tokens, IdentityTokenIOAdapter ioAdapter) {
          if (ioAdapter != null && ioAdapter.isRewriteSupported()) {
              ioAdapter.rewriteIdentityTokens(tokens);
          }
      }
docs: Rewrites the caller's credentials back into the HTTP response. The main use case for this is
  rewriting SSO tokens, which may change and the client needs to know the new value.
  
  @param tokens - the identity tokens to marshall
  @param ioAdapter - the adapter to detail with the transport specific IO requirements