docs: public static String addSnsIndexesToLikeExpression( String pathLikeExpression ) {
          if ("%".equals(pathLikeExpression)) return pathLikeExpression;
  
          boolean altered = false;
          StringBuilder sb = new StringBuilder();
          for (String segment : pathLikeExpression.split("/")) {
              if (segment.length() == 0) {
                  // This segment is empty ...
                  continue;
              }
              sb.append('/').append(segment);
              if (segment.endsWith("%") || segment.endsWith("]")) {
                  // This segment already ends with a wildcard or a SNS index, so we're done ...
                  continue;
              }
              // Otherwise, we have to add the SNS index ...
              sb.append("[1]");
              altered = true;
          }
          return altered ? sb.toString() : pathLikeExpression;
      }