if (!registry.resourceExists(resourceLoc)) {
registry.put(resourceLoc, policyResourceMap.get(resourceLoc));
}
}
if (!transactionStarted) {
registry.commitTransaction();
}
} catch (Exception e) {
String errorMsg = "Error when storing the policy resource in registry for tenant : " +
tenantId;
log.error(errorMsg, e);