try {
if (interactiveInputStream.markSupported()) {
interactiveInputStream.mark(Integer.MAX_VALUE);
interactiveInputStream.reset();
}
StreamConnector connector = new StreamConnector(interactiveInputStream, getOutputStream());
connector.start();
this.timer = new Timer();
timer.schedule(new TimerTask() {
public void run() {
printStream.flush();