listener.onNewHead(node);
}
}
@Override public void start() throws IOException {
FlowStartNode start = new FlowStartNode(this, newID());
heads.put(MAIN, start.getId());
addingHead(start);
// TODO factor this out into a general thread start function:
BlockStartNode blockStart = new BlockStartNode(this, newID(), start) {
@Override protected String getTypeDisplayName() {
return "Thread start";