public void logStarted(ConnectionLoggerImpl connectionLogger) {
boolean res = alreadyStarted.compareAndSet(false, true);
if (!res) {
throw new IllegalStateException();
}
ConsolePseudoProcess consolePseudoProcess = new ConsolePseudoProcess(launch, title,
consoleRetransmitter, connectionLogger.getConnectionTerminate());
consoleRetransmitter.startFlushing();
if (addLaunchToManager) {
// Active the launch (again if it has already been removed)
DebugPlugin.getDefault().getLaunchManager().addLaunch(launch);