PrintStream printstream = (PrintStream) ps.get("ps");
if (isDebugEnabled()) {
System.out.println("loading the printStream " + id + " as system stream...");
}
sendConsoleEvent(PRINT_RESUME, id);
if (!printstream.checkError()) {
stdoutPS.get(out).add(id);
if ((out & STDOUT) != 0) {
System.setOut(printstream);
}
if ((out & STDERR) != 0) {