//Place the xacml statement in an assertion
//Then the assertion goes inside a SAML Response
String ID = IDGenerator.create("ID_");
SAML2Response saml2Response = new SAML2Response();
IssuerInfoHolder issuerInfo = new IssuerInfoHolder(this.issuer);
AssertionType assertion = SAMLAssertionFactory.getObjectFactory().createAssertionType();
assertion.getStatementOrAuthnStatementOrAuthzDecisionStatement().add(xacmlStatement);
assertion.setID(ID);
assertion.setVersion(JBossSAMLConstants.VERSION_2_0.get());
assertion.setIssuer(issuerInfo.getIssuer());
JAXBElement<?> jaxbResponse = JAXBElementMappingUtil.get(saml2Response.createResponseType(ID, issuerInfo, assertion));
//Create a SOAP Envelope to hold the SAML response
envelope = this.createEnvelope(jaxbResponse);