SPConstants consts = SP11Constants.SP_NS.equals(element.getNamespaceURI())
? SP11Constants.INSTANCE : SP12Constants.INSTANCE;
AlgorithmSuiteLoader loader = bus.getExtension(AlgorithmSuiteLoader.class);
if (loader == null) {
loader = new DefaultAlgorithmSuiteLoader();
}
Element policyElement = DOMUtils.getFirstElement(element);
if (policyElement == null) {
throw new IllegalArgumentException(
"sp:AlgorithmSuite/wsp:Policy must have a value"