System.setOut(printStream);
System.setErr(printStream);
batchOutput.setVisible(true);
BatchTool batchTool =
new BatchTool(properties, nullProperties, nullProperties);
batchTool.prep();
batchTool.process();
} catch (Exception e) {
} finally {
System.setOut(originalOut);
originalOut = null;