code:     public ResetPasswordResponse resetPassword(String code, String newPassword) throws InvalidPasswordException {
          try {
              passwordValidator.validate(newPassword);
              return changePasswordCodeAuthenticated(code, newPassword);
          } catch (RestClientException e) {
              throw new UaaException(e.getMessage());
          }
      }
  
  