code: private void readQueryGroup(LineNumberReader reader, String groupId) throws IOException {
          String line = "";
          while (!(line = reader.readLine()).equals(END_COLLECTION_SYMBOL)) {
              if (isCommentLine(line) || line.isEmpty()) {
                  continue; // skip comment lines
              }
              if (line.contains(QUERY_ITEM)) {
                  // The query ID is enclosed by a double-quotes sign
                  String queryId = line.substring(line.indexOf("\"")+1, line.lastIndexOf("\""));
                  readQueryContent(reader, groupId, queryId);
              } else {
                  throw new IOException(String.format("Invalid syntax at line: %s", reader.getLineNumber()));
              }
          }
      }
docs: /*
  Private helper methods.