public SQLQueryFactory(String sql) throws ValidationException {
CharStream input;
try {
input = new ANTLRInputStream(new ByteArrayInputStream(sql.getBytes("UTF-8")));
} catch (Exception e) {
Logger.error(SQLQueryFactory.class,e.getMessage(),e);
throw new DotRuntimeException(e.getMessage(), e);
}
TokenSource lexer = new CmisSqlLexer(input);