src/main/java/org/helm/notation2/parser/notation/HELM2Notation.java
public String connectionToHELM2() {
    if (listOfConnections.size() == 0) {
      return "";
    }
    StringBuilder notation = new StringBuilder();
    for (int i = 0; i < listOfConnections.size(); i++) {
      notation.append(listOfConnections.get(i).toHELM2() + "|");
    }

    notation.setLength(notation.length() - 1);
    return notation.toString();
  }
public String connectionToHELM2() {
    if (listOfConnections.size() == 0) {
      return "";
    }
    StringBuilder notation = new StringBuilder();
    for (int i = 0; i < listOfConnections.size(); i++) {
      notation.append(listOfConnections.get(i).toHELM2() + "|");
    }

    notation.setLength(notation.length() - 1);
    return notation.toString();
  }
method to generate a valid HELM2 string for the second section

@return valid HELM2 String