.getInterface().removeProperty(EXTRA_POLICIES));
if (list != null) {
addPolicies(factory, server.getEndpoint(), cls, list, Policy.Placement.BINDING);
}
Policy p = cls.getAnnotation(Policy.class);
Policies ps = cls.getAnnotation(Policies.class);
if (p != null || ps != null) {
list = new ArrayList<Policy>();
if (p != null) {
list.add(p);
}
if (ps != null) {
list.addAll(Arrays.asList(ps.value()));
}
addPolicies(factory, server.getEndpoint(), cls, list, Policy.Placement.SERVICE);
}
}