{
Document document = DOMUtil.parse(new File(requestFile), true);
if(document == null)
throw new IllegalStateException("Document parsed is null");
SAML2Util util = new SAML2Util();
Element docElement = document.getDocumentElement();
if(docElement == null)
throw new IllegalStateException("Document Element is null");
return (SAMLObject) util.toXMLObject(docElement);
}