reachedEOF = runningProcess.isMarkedAsFinished();
// save and print output
if (sentence.isFinished()) {
sentence.trim();
log.log(Level.FINEST, "({0}): {1}", new Object[] { result.processName(), sentence });
output.add(sentence.toString());
// propagate output/error to user
if (interaction.shouldOutput(sentence)) {
System.out.println(interaction.transform(sentence));