docs: private void doLogin(LoginGenerator.LoginRecord login) {
          // Synchronously call the "Login" procedure passing in a json string containing
          // login-specific structure/data.
          try {
              ClientResponse response = client.callProcedure("Login",
                                                              login.username,
                                                              login.password,
                                                              login.json);
  
  
              long resultCode = response.getResults()[0].asScalarLong();
              if (resultCode == LOGIN_SUCCESSFUL)
                  acceptedLogins.incrementAndGet();
              else
                  badLogins.incrementAndGet();
          }
          catch (Exception e) {
              badLogins.incrementAndGet();
              e.printStackTrace();
          }
      }