code: private int getIndexOfCurlyB(String str) {
          int i;
          int j;
          i = str.indexOf("{");
          j = str.indexOf("\\{");
          while ((i - 1 == j) && (j != -1)) {
              i = str.indexOf("{", i + 1);
              j = str.indexOf("\\{", j + 1);
          }
          return i;
      }
docs: back slash "\{" from curly bracket "{"