for (PolicyInfo pi : proxy.getPolicies()) {
if (pi.isServicePolicy()) {
config.getEntryDefinition(pi.getPolicyKey());
Policy proxyPolicy = PolicyEngine.getPolicy(SynapseConfigUtils.getStreamSource(
config.getEntry(pi.getPolicyKey())).getInputStream());
if (proxyPolicy.equal(policy.normalize(false))) {
return null;
}
}
}
return new PolicyInfo(policyPath);