@Override
public void readUserGroups(User user)
throws IdentityException, NamingException, SQLException {
if ((user != null) && (user.getDistinguishedName().equalsIgnoreCase(getDN()))) {
Roles cfgRoles = getApplicationConfiguration().getIdentityConfiguration().getConfiguredRoles();
for (Role role: cfgRoles.values()) {
Group group = new Group();
group.setDistinguishedName(role.getKey());
group.setKey(role.getKey());
group.setName(role.getKey());
user.getGroups().add(group);