//this means that if we have a compact policy only the first alternative is visible
//in contrary to a normalized policy where just one alternative exists
if (alternatives.hasNext()) {
List<Assertion> assertions = alternatives.next();
for (int i = 0; i < assertions.size(); i++) {
Assertion assertion = assertions.get(i);
String assertionName = assertion.getName().getLocalPart();
String assertionNamespace = assertion.getName().getNamespaceURI();
if (getVersion().getSPConstants().getEncryptionToken().getLocalPart().equals(assertionName)
&& getVersion().getSPConstants().getEncryptionToken().getNamespaceURI().equals(assertionNamespace)) {
if (symmetricBinding.getEncryptionToken() != null || symmetricBinding.getProtectionToken() != null) {
throw new IllegalArgumentException(SPConstants.ERR_INVALID_POLICY);
}