- catch (XMLToolingException& ex) {
- // This is just to maximize the likelihood of attaching a source to the message for support purposes.
- if (policy.getIssuerMetadata())
- annotateException(&ex,policy.getIssuerMetadata()); // throws it
-
- const Issuer* claimedIssuer = root->getIssuer();
- if (!claimedIssuer) {
- // Check for assertions.
- const Response* assbag = dynamic_cast<Response*>(root);
- if (assbag) {
- const vector<Assertion*>& assertions=assbag->getAssertions();
- if (!assertions.empty())
- claimedIssuer = assertions.front()->getIssuer();
- }
- }