class KeyCloakUserManager extends BaseKeyCloakManager implements UserManager,
                                                                        ContextualManager {

    @Override
    public void changePassword(String username,
                               String newPassword) throws SecurityManagementException {
        checkNotNull("username",
                     username);
        consumeRealm(realmResource -> {
            final UsersResource usersResource = realmResource.users();
            final UserResource userResource = getUserResource(usersResource,
                                                              username);
            if (userResource == null) {
                throw new UserNotFoundException(username);
            }
            final CredentialRepresentation credentialRepresentation = new CredentialRepresentation();
            credentialRepresentation.setType(CREDENTIAL_TYPE_PASSWORD);
            credentialRepresentation.setValue(newPassword);
            userResource.resetPassword(credentialRepresentation);
        });
    }

    public  KeyCloakUserManager();

}