int getVariableSegmentNumber(String variableName) {
    parseSegments();
    synchronized (mySegments) {
      for (int i = 0; i < mySegments.size(); i++) {
        if (mySegments.get(i).name.equals(variableName)) {
          return i;
        }
      }
    }
    return -1;
  }
int getVariableSegmentNumber(String variableName)