saml2Response.marshall(responseType, baos);
}
catch (SAXException e1)
{
log.trace("Parsing Exception in sending response:",e1);
throw new ParsingException("Parsing Exception in sending response:" , e1);
}
catch (JAXBException e1)
{
log.trace("Parsing Exception in sending response:",e1);
throw new ParsingException("Parsing Exception in sending response:" ,e1);
}
if(redirectProfile)
{
String urlEncodedResponse = RedirectBindingUtil.deflateBase64URLEncode(baos.toByteArray());