}
return instance;
}
private static JavaRuntime createAJavaRuntime() {
return new JavaRuntime(new IConsole() {
public void writeScriptOut(char[] cbuf, int off, int len) {
try {
System.out.write(new String(cbuf, off, len).getBytes());
} catch (IOException e) {
e.printStackTrace();