code: private void processSuccesses(JSONObject jsonSuccesses) {
          if (jsonSuccesses == null) {
              return;
          }
  
          MCAAuthorizationManager authManager = (MCAAuthorizationManager) BMSClient.getInstance().getAuthorizationManager();
          ArrayList<String> challenges = getRealmsFromJson(jsonSuccesses);
          for (String realm : challenges) {
              ChallengeHandler handler = authManager.getChallengeHandler(realm);
              if (handler != null) {
                  JSONObject challenge = jsonSuccesses.optJSONObject(realm);
                  handler.handleSuccess(context, challenge);
              } else {
                  logger.error("Challenge handler for realm is not found: " + realm);
              }
          }
      }
docs: Processes authentication successes.
  
  @param jsonSuccesses Collection of authentication successes.