code: private void parse(String text, int start, int end)
     {
        int closing = getClosingParenthesisPosition(text, start);
        if (closing == -1 || closing > end)
        {
           throw new IllegalStateException("Error in parenthesis hierarchy");
        }
        if (!text.startsWith("(0||"))
        {
           throw new IllegalStateException("Not a valid record");
        }
  
        int valueStart = getNextOpeningParenthesisPosition(text, start);
        int valueStop = getClosingParenthesisPosition(text, valueStart);
        int dictStart = getNextOpeningParenthesisPosition(text, valueStop);
        int dictStop = getClosingParenthesisPosition(text, dictStart);
        parse(text, start + 4, valueStart, valueStop, dictStart, dictStop);
     }
docs: Parse a block of text into records.
  
  @param text text to parse
  @param start start index
  @param end end index