code: private final void consumeExpected(String expected)
            throws javax.xml.transform.TransformerException
    {
  
      if (tokenIs(expected))
      {
        nextToken();
      }
      else
      {
        error(XPATHErrorResources.ER_EXPECTED_BUT_FOUND, new Object[]{ expected,
                                                                       m_token });  //"Expected "+expected+", but found: "+m_token);
  
  	  // Patch for Christina's gripe. She wants her errorHandler to return from
  	  // this error and continue trying to parse, rather than throwing an exception.
  	  // Without the patch, that put us into an endless loop.
  		throw new XPathProcessorException(CONTINUE_AFTER_FATAL_ERROR);
  	}
    }
docs: Consume an expected token, throwing an exception if it
  isn't there.
  
  @param expected The string to be expected.
  
  @throws javax.xml.transform.TransformerException