private FilterParser getFilterParser(String filter) throws MetaException {
CharStream cs = new ANTLRNoCaseStringStream(filter);
FilterLexer lexer = new FilterLexer(cs);
CommonTokenStream tokens = new CommonTokenStream();
tokens.setTokenSource (lexer);
FilterParser parser = new FilterParser(tokens);
try {
parser.filter();