protected final function GatherOutput()
    {
        \header('Content-Type: application/json');
        try
        {
            $this->output = json_encode($this->result);
        }
        catch (\Exception $ex)
        {
            $this->AttachException($ex);
        }
    }