class KeyCloakUserManager extends BaseKeyCloakManager implements UserManager,
                                                                        ContextualManager {

    @Override
    public List<User> getAll() throws SecurityManagementException {
        final List<User> users = new ArrayList<>();
        consumeRealm(realmResource -> {
            final UsersResource usersResource = realmResource.users();
            final List<UserRepresentation> userRepresentations = usersResource.list();
            if (userRepresentations != null && !userRepresentations.isEmpty()) {
                for (UserRepresentation userRepresentation : userRepresentations) {
                    final User user = createUser(userRepresentation);
                    users.add(user);
                }
            }
        });
        return users;
    }

    public  KeyCloakUserManager();

}