code: public static String getUniqueColumnName(String base, List<Column> columns) {
          String cursor = base;
          int cpt = 2;
          boolean findDuplicate= true;
          while(findDuplicate) {
              findDuplicate = false;
              for (Column column : columns) {
                  if (column.getName().equalsIgnoreCase(cursor)) {
                      findDuplicate = true;
                      break;
                  }
              }
              if(findDuplicate) {
                  cursor = base + Integer.toString(cpt);
              }
          }
          return cursor;
      }
docs: Compute unique column name among the other columns
  @param base Returned name if there is no duplicate
  @param columns Other existing columns
  @return Unique column name