public void removePolicy(PolicyDTO policy) throws IdentityException {
PolicyAdmin policyAdmin;
EntitlementEngine entitlementEngine = EntitlementEngine
.getInstance(getGovernanceUserRegistry(), CarbonContext.getCurrentContext().getTenantId());
policyAdmin = new PolicyAdmin(new PolicyStore(getGovernanceUserRegistry()));
policyAdmin.removePolicy(policy);
// Reload the policies to the memory.
entitlementEngine.getRegistryModule().init(null);
}
/**