private void addValidationObjectiveToMap(
     Map<String, Map<String, List<String>>> messageTypeValidationObjectiveReferenceFilesMap,
     TestDataTreeWrapper testDataTreeWrapper) {
   messageTypeValidationObjectiveReferenceFilesMap
       .get(testDataTreeWrapper.getMessageType())
       .put(testDataTreeWrapper.getValidationObjective(), new ArrayList<String>());
 }
  public Map<String, Map<String, List<String>>>
      getMapOfSenderAndRecieverValidationObjectivesWithReferenceFiles() {
    RestTemplate restTemplate = new RestTemplate();
    ResponseEntity<GithubResponseWrapper> responseEntity =
        restTemplate.exchange(
            GITHUB_URL,
            HttpMethod.GET,
            null,
            new ParameterizedTypeReference<GithubResponseWrapper>() {});

    Map<String, Map<String, List<String>>> messageTypeValidationObjectiveReferenceFilesMap =
        new HashMap<>();
    for (TestDataTreeWrapper testDataTreeWrapper : responseEntity.getBody().getTree()) {
      if (!(testDataTreeWrapper.getPath().equalsIgnoreCase("license")
          || testDataTreeWrapper.getPath().equalsIgnoreCase("README.md"))) {
        if (isMessageTypeInMap(
            messageTypeValidationObjectiveReferenceFilesMap, testDataTreeWrapper)) {
          if (isValidationObjectiveInMap(
              messageTypeValidationObjectiveReferenceFilesMap, testDataTreeWrapper)) {
            addReferenceFileNameToListInValidationObjectiveMap(
                messageTypeValidationObjectiveReferenceFilesMap, testDataTreeWrapper);
          } else {
            addValidationObjectiveToMap(
                messageTypeValidationObjectiveReferenceFilesMap, testDataTreeWrapper);
          }
        } else {
          addMessageTypeToMap(messageTypeValidationObjectiveReferenceFilesMap, testDataTreeWrapper);
        }
      }
    }
    return messageTypeValidationObjectiveReferenceFilesMap;
  }
 private boolean isValidationObjectiveInMap(
     Map<String, Map<String, List<String>>> messageTypeValidationObjectiveReferenceFilesMap,
     TestDataTreeWrapper testDataTreeWrapper) {
   return messageTypeValidationObjectiveReferenceFilesMap
       .get(testDataTreeWrapper.getMessageType())
       .containsKey(testDataTreeWrapper.getValidationObjective());
 }
 private void addReferenceFileNameToListInValidationObjectiveMap(
     Map<String, Map<String, List<String>>> messageTypeValidationObjectiveReferenceFilesMap,
     TestDataTreeWrapper testDataTreeWrapper) {
   messageTypeValidationObjectiveReferenceFilesMap
       .get(testDataTreeWrapper.getMessageType())
       .get(testDataTreeWrapper.getValidationObjective())
       .add(testDataTreeWrapper.getReferenceFileName());
 }