code: public static void setSystemOutputs(ClassLoader classLoader, PrintStream out, PrintStream err)
  			throws Exception
  	{
  		Class<?> systemClass = classLoader.loadClass("java.lang.System");
  		Method setSystemOutMethod = systemClass.getMethod("setOut", PrintStream.class);
  		setSystemOutMethod.invoke(null, out);
  		Method setSystemErrMethod = systemClass.getMethod("setErr", PrintStream.class);
  		setSystemErrMethod.invoke(null, err);
  	}
docs: <p>setSystemOutputs.</p>
  
  @param classLoader a {@link java.lang.ClassLoader} object.
  @param out a {@link java.io.PrintStream} object.
  @param err a {@link java.io.PrintStream} object.
  @throws java.lang.Exception if any.