case GLOBAL_SYNC:
try {
policy = (T) restTemplate.getForObject(baseURL + "policy/sync/global/read", SyncPolicyTO.class);
} catch (Exception e) {
LOG.debug("No password policy found", e);
policy = (T) new SyncPolicyTO();
}
break;
default:
throw new Exception("Invalid policy type");
}