private static void evaluateExpression(Session session, String expression) throws Exception {
evaluate(session, new ByteArrayInputStream(expression.getBytes()));
}
private static void evaluate(Session session, InputStream in) throws Exception {
UnsupportedTerminal term = new UnsupportedTerminal();
ConsoleReader consoleReader = new ConsoleReader(in, System.out, term);
JlineRepl repl = new JlineRepl(session, consoleReader);
repl.setEcho(true);
repl.setStopOnError(true);