class KeyCloakUserManager extends BaseKeyCloakManager implements UserManager,
                                                                        ContextualManager {

    @Override
    public User get(String username) throws SecurityManagementException {
        checkNotNull("username",
                     username);
        final User[] user = new User[1];
        consumeRealm(realmResource -> {
            final UsersResource usersResource = realmResource.users();
            final UserResource userResource = getUserResource(usersResource,
                                                              username);
            final RoleMappingResource roleMappingResource = userResource.roles();
            Set<Group> _groups = null;
            Set<Role> _roles = null;
            if (roleMappingResource != null) {
                Set[] gr = getUserGroupsAndRoles(roleMappingResource);
                if (null != gr) {
                    _groups = gr[0];
                    _roles = gr[1];
                }
            }
            user[0] = createUser(userResource.toRepresentation(),
                                 _groups,
                                 _roles);
        });
        return user[0];
    }

    public  KeyCloakUserManager();

}