return null;
}
private void calculatePolicy() {
Policy result = null;
Iterator iterator = wrapperElements.values().iterator();
while (iterator.hasNext()) {
Object policyElement = ((Wrapper) iterator.next()).getValue();
Policy p;
if (policyElement instanceof PolicyReference) {
p = (Policy) ((PolicyReference) policyElement)
.normalize(getPolicyRegistry());
} else if (policyElement instanceof Policy) {
p = (Policy) policyElement;
} else {
// TODO AxisFault?
throw new RuntimeException();
}
result = (result == null) ? (Policy) p.normalize(reg)
: (Policy) result.merge(p, reg);
}
this.policy = result;
useCacheP(true);
}