code: private void addChangeSets(Build build, JSONObject buildJson) {
          JSONObject changeSet = (JSONObject) buildJson.get("changes");
  
  //        Map<String, String> revisionToUrl = new HashMap<>();
  
  //        // Build a map of revision to module (scm url). This is not always
  //        // provided by the Bamboo API, but we can use it if available.
  //        for (Object revision : getJsonArray(changeSet, "revisions")) {
  //            JSONObject json = (JSONObject) revision;
  //            revisionToUrl.put(json.get("revision").toString(), getString(json, "module"));
  //        }
  
          for (Object item : getJsonArray(changeSet, "change")) {
              JSONObject jsonItem = (JSONObject) item;
              SCM scm = new SCM();
              scm.setScmAuthor(getString(jsonItem, "author"));
              scm.setScmCommitLog(getString(jsonItem, "comment"));
              scm.setScmCommitTimestamp(getCommitTimestamp(jsonItem));
              scm.setScmRevisionNumber(getRevision(jsonItem));
              scm.setScmUrl(getString(jsonItem,"commitUrl"));
              scm.setNumberOfChanges(getJsonArray((JSONObject)jsonItem.get("files"), "file").size());
              build.getSourceChangeSet().add(scm);
          }
      }
docs: Grabs changeset information for the given build.
  
  @param build     a Build
  @param buildJson the build JSON object