}
if (node == null)
throw logger.nullValueError("Did not find Response node");
XMLEventReader xmlEventReader = StaxParserUtil.getXMLEventReader(DocumentUtil.getNodeAsStream(node));
SAMLResponseParser samlResponseParser = new SAMLResponseParser();
ResponseType responseType = (ResponseType) samlResponseParser.parse(xmlEventReader);
// ResponseType responseType = (ResponseType) response;
AssertionType at = responseType.getAssertions().get(0).getAssertion();
XACMLAuthzDecisionStatementType xst = (XACMLAuthzDecisionStatementType) at.getStatements().iterator().next();
ResultType rt = xst.getResponse().getResult().get(0);