@Override
public AnnotatedLargeText<? extends FlowNode> getLogText() {
try {
getLogFile();
if (!log.exists())
return new AnnotatedLargeText<FlowNode>(new ByteBuffer(), getCharset(), !parent.isRunning(), parent);
return new AnnotatedLargeText<FlowNode>(log, getCharset(), !parent.isRunning(), parent);
} catch (IOException e) {
ByteBuffer buf = new ByteBuffer();
PrintStream ps;
try {
ps = new PrintStream(buf, false, "UTF-8");
} catch (UnsupportedEncodingException x) {
throw new AssertionError(x);