org.apache.neethi.Policy wsPolicy = PolicyEngine.getPolicy(policyElement);
policySet.getPolicies().add(wsPolicy);
} */else {
Object extension = extensionProcessor.read(reader, context);
if (extension != null) {
PolicyExpression exp = policyFactory.createPolicyExpression();
exp.setName(name);
exp.setPolicy(extension);
// check that all the policies in the policy set are
// expressed in the same language. Compare against the
// first expression we added
if ((policySet.getPolicies().size() > 0) &&
(!policySet.getPolicies().get(0).getName().getNamespaceURI().equals(name.getNamespaceURI()))) {