public void bootstrap() {
try {
Commandline commandLine = buildUpdateCommand();
Process p = commandLine.execute();
final boolean autoFlushOn = true;
StreamPumper errorPumper =
new StreamPumper(p.getErrorStream(), new PrintWriter(System.err, autoFlushOn));
StreamPumper outPumper = new StreamPumper(p.getInputStream(), new PrintWriter(System.out, autoFlushOn));
Thread errorPumperThread = new Thread(errorPumper);
Thread outPumperThread = new Thread(outPumper);
errorPumperThread.start();
outPumperThread.start();
p.waitFor();