this.controller = mother;
this.configurationReader = controller.getConfigurationReader();
this.crawlQueueManager = mother.getCrawlQueueManager();
if (controller.getSession() != null) {
this.stateMachine =
new StateMachine(controller.getSession().getStateFlowGraph(), controller
.getSession().getInitialState(), controller.getInvariantList());
} else {
/**
* Reset the state machine to null, because there is no session where to load the
* stateFlowGraph from.