if (log.isDebugEnabled()) {
log.debug("Policy: " + new Gson().toJson(policy));
}
policyMap.put(policy.getName(), policy);
PolicyDefinition policyDefinition = new PolicyDefinition();
policyDefinition.setName(policy.getName());
policyDefinition.setDescription(policy.getDescription());
policyDefinition.setDefaultPolicy(policy.isDefaultPolicy());
policyDefinitions.add(policyDefinition);
// Set first default policy
if (defaultPolicy == null && policy.isDefaultPolicy()) {
defaultPolicy = policy;