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);
client.exportInterface(ILogger.class);
try {
this.process = launchVM(profile, logViewLogger);
} catch (Throwable t) {
if (process != null)
process.destroy();