FlowHead head = CpsThread.current().head;
StepEndNode end = new StepEndNode(head.getExecution(),
(StepStartNode) head.getExecution().getNode(startNodeId),
head.get());
end.addAction(new BodyInvocationAction());
head.setNewHead(end);
return end;
} catch (IOException e) {
LOGGER.log(Level.WARNING, "Failed to grow the flow graph", e);