if (true) { s_log.info(basePDLName + " AST dump:"); System.out.print(pdl.getAST()); }
    private void checkErrorMessage(String basePDLName,                                   Collection errorKeywords,                                   Collection failures)        throws Exception    {        s_log.info("Checking bad pdl: " + basePDLName);        try {            MetadataRoot r = MetadataRoot.getMetadataRoot();            PDL pdl = getPDL(basePDLName);            pdl.generateMetadata(r);            if (true) {                s_log.info(basePDLName + " AST dump:");                System.out.print(pdl.getAST());            }        } catch (Throwable e) {            //s_log.info(basePDLName + " error " + e.getMessage());            String s = e.toString();            Iterator iter = errorKeywords.iterator();            while(iter.hasNext())  {                final String errorString = (String)iter.next();                if (s.indexOf(errorString) < 0) {                    failures.add("error message for " + basePDLName +                                 " does not contain \"" + errorString                                 + "\"; error message:\n" + s);                }            }            return;        }        // This can't be in the try clause because then it would        // be caught.        failures.add("no exception for " + basePDLName);    }