private boolean isNotIgnored(String msg) {
        return msg == null || !ignorePattern.matcher(msg).matches();
    }
{@link Console} implementation used in tests to capture the output of the {@link Exec} class.
hplsql/src/test/java/org/apache/hive/hplsql/TestConsole.java