code: public ParserResults parse(final String contentSpec, final ParsingMode mode, final boolean processProcesses) {
          final ParserData parserData = new ParserData();
  
          // Read in the file contents
          final BufferedReader br = new BufferedReader(new StringReader(contentSpec));
          try {
              readFileData(parserData, br);
          } catch (IOException e) {
              throw new RuntimeException(e);
          }
  
          // Process the spec contents.
          return processSpec(parserData, mode, processProcesses);
      }
docs: Parse a Content Specification to put the string into usable objects that can then be validate.
  
  @param contentSpec      A string representation of the Content Specification.
  @param mode             The mode in which the Content Specification should be parsed.
  @param processProcesses Whether or not processes should call the data provider to be processed.
  @return True if everything was parsed successfully otherwise false.