class ChangePassword implements IsWidget {

    boolean validatePasswordsMatch(final String p1,
                                   final String p2) {
        final boolean valid = p1 != null && p1.equals(p2);
        if (!valid) {
            showErrorMessage(UsersManagementWidgetsConstants.INSTANCE.passwordsNotMatch());
        }
        return valid;
    }

    @Inject public  ChangePassword(final ClientUserSystemManager userSystemManager,
                          final Event<NotificationEvent> workbenchNotification,
                          final Event<OnErrorEvent> errorEvent,
                          final Event<ChangePasswordEvent> changePasswordEvent,
                          final View view);

}