private Process process;
private JavaRuntimeProfile profile;
private static Logger logger = Logger.getLogger(JavaRuntimeFactory.class.getName());;
public synchronized IMarathonRuntime createRuntime(MarathonMode mode, String script, IConsole console) {
ILogger logViewLogger = RuntimeLogger.getRuntimeLogger();
profile = createProfile(mode, script);
Client client = new Client("localhost", profile.getPort());
client.exportInterface(IConsole.class);
client.exportInterface(IRecorder.class);
client.exportInterface(IPlaybackListener.class);