try {
policy = (T) SyncopeSession.get().getRestTemplate().getForObject(
baseURL + "policy/account/global/read", AccountPolicyTO.class);
} catch (Exception e) {
LOG.debug("No account policy found", e);
policy = (T) new AccountPolicyTO();
}
break;
case GLOBAL_PASSWORD:
try {
policy = (T) SyncopeSession.get().getRestTemplate().getForObject(