public class RutaConsoleUtil {
public static void runDefaultRutaInterpreter(RutaInterpreter interpreter)
throws CoreException, IOException {
ScriptConsoleServer server = ScriptConsoleServer.getInstance();
String id = server.register(interpreter);
String port = Integer.toString(server.getPort());
String[] args = new String[] { "127.0.0.1", port, id };
IExecutionEnvironment exeEnv = (IExecutionEnvironment) EnvironmentManager.getLocalEnvironment()
.getAdapter(IExecutionEnvironment.class);