public PrintStream getRobotOutputStream() { Thread c = Thread.currentThread(); if (isSafeThread(c)) { return null; } IHostedThread robotProxy = getLoadedOrLoadingRobotProxy(c); return (robotProxy != null) ? robotProxy.getOut() : null; }