GrammarFactory factory = new GrammarFactory();
SourceUtil.toSAX(this.manager, this.grammarSource, null, factory);
//Configuration config = confighandler.getConfiguration();
//Grammar grammar = GrammarFactory.createGrammar(config);
Grammar grammar = factory.getGrammar();
if (grammar==null)
throw new ProcessingException("Error while reading the grammar from "+src);
ParserAutomatonBuilder builder =