Is there a way to set the stream System.err so everything written to it is ignored? (i.e. discarded not outputted)
System.setErr(new PrintStream(new OutputStream() { public void write(int b) { } }));