} else if (stream == CommandLine.DEFAULT_STDOUT) {
return cout;
} else if (stream == CommandLine.DEFAULT_STDERR) {
return cerr;
} else if (stream == CommandLine.DEVNULL || stream == null) {
return new CommandInputOutput(new NullInputStream(), new NullOutputStream());
} else {
return stream;
}
}