Added output handling (based on whether we get errors or just the output).
Added output handling (based on whether we get errors or just the output).

ASQ-USI-Elements/asq-java-q,ASQ-USI-Elements/asq-java-q