code: public String getNextIndex() {
          String newIndex;
  
          do {
              newIndex = "tsx" + String.valueOf(lastIndexIndex);
              lastIndexIndex++;
          }
          while (exists(newIndex) == true);
  
          addIndex(newIndex);
  
          return newIndex;
      }
docs: we default to tsx# as an index if the user doesn't specify one