* can be fulfilled then we choose this alternative and signal a
* success.
*/
boolean all = true;
while (all && iterator.hasNext()) {
Assertion assertion = (Assertion) iterator.next();
/*
* At this point we expect PrimitiveAssertions only.
*/
if (!(assertion instanceof PrimitiveAssertion)) {
System.out.println("Got a unexpected assertion type: "
+ assertion.getClass().getName());
continue;
}
/*
* We need to pick only the primitive assertions which contain a
* WSSecurityPolicy policy assertion. For that we'll check the