void setPersistFunction(ExecutableFunction doPersist)

Sets the function that persists the nodes.

Source

void setPersistFunction(ExecutableFunction doPersist) {
  _persist = doPersist;
}