private function CreateSettings()
    {
        $this->settings = new Settings();
        $this->settings->SetLogLifetime(90);
        $this->settings->SetChangeRequestLifetime(30);
        $this->settings->SetSmtpSecurity((string)Enums\SmtpSecurity::None());
        $admin = $this->FirstAdmin();
        if ($admin)
        {
            $this->settings->SetMailFromEMail($admin->GetEMail());
            if ($admin->GetFirstName() &&  $admin->GetLastName())
            {
                $this->settings->SetMailFromName($admin->GetFirstName() . ' ' . $admin->GetLastName());
            }
        }
        $this->settings->Save();
    }