SAML11ResponseType saml11Response = new SAML11ResponseType(id, XMLTimeUtil.getIssueInstant());
saml11Response.add(saml11Assertion);
saml11Response.setStatus(SAML11StatusType.successType());
ByteArrayOutputStream baos = new ByteArrayOutputStream();
SAML11ResponseWriter writer = new SAML11ResponseWriter(StaxUtil.getXMLStreamWriter(baos));
writer.write(saml11Response);
Document samlResponse = DocumentUtil.getDocument(new ByteArrayInputStream(baos.toByteArray()));
WebRequestUtilHolder holder = webRequestUtil.getHolder();
holder.setResponseDoc(samlResponse).setDestination(target).setRelayState("").setAreWeSendingRequest(false)