boolean securityPolicyPresent = false;
if(alternatives.hasNext()) {
List assertions = (List)alternatives.next();
for (Iterator iterator = assertions.iterator(); iterator.hasNext();) {
Assertion assertion = (Assertion) iterator.next();
//Check for any *Binding assertion
if (assertion instanceof Binding) {
securityPolicyPresent = true;
break;
// There can be security policies containing only supporting tokens