class FormInterpretationAlgorithm implements FormItemVisitor {

    public GrammarDocument processGrammar(final Grammar grammar)
            throws UnsupportedFormatError, NoresourceError, BadFetchError,
            SemanticError {
        final GrammarProcessor processor = context.getGrammarProcessor();
        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("preprocessing grammar " + grammar + "...");
        }
        final Locale language = interpreter.getLanguage();
        return processor.process(context, null, grammar, language);
    }

    public  FormInterpretationAlgorithm(final VoiceXmlInterpreterContext ctx,
            final VoiceXmlInterpreter ip, final Dialog currentDialog);

}