code: private static void section3(List<GroupingNotation> groupings, Map<String, String> mapIds) throws NotationException {
  
      for (GroupingNotation grouping : groupings) {
        GroupEntity groupID = grouping.getGroupID();
        if (mapIds.containsKey(groupID.getId())) {
          groupID = new GroupingNotation(mapIds.get(groupID.getId())).getGroupID();
        }
  
        String details = grouping.toHELM2().split("\\(")[1].split("\\)")[0];
        details = changeIDs(details, mapIds);
        helm2notation.addGrouping(new GroupingNotation(groupID, details));
  
      }
    }
docs: method to add groupings to the existent grouping section
  
  @param groupings new GroupingNotations
  @param mapIds map of old and new Ids
  @throws NotationException if notation is not valid