public function __construct($mode, array $urlParameters = array())
{
$this->mode = $mode;
$this->urlParameters = $urlParameters;
$this->utility = GeneralUtility::makeInstance('DmitryDulepov\\Realurl\\Utility', $this);
try {
$this->setHostnames();
$this->loadExtConfiguration();
$this->performAutomaticConfiguration();
$this->setConfigurationForTheCurrentDomain();
$this->postProcessConfiguration();
} catch (\Exception $exception) {
$this->exception = $exception;
}
}