public function setComponent(QtiComponent $templateProcessing)
    {
        if ($templateProcessing instanceof TemplateProcessing) {
            parent::setComponent($templateProcessing);
        } else {
            $msg = "The TemplateProcessing class only accepts TemplateProcessing objects to be executed.";
            throw new InvalidArgumentException($msg);
        }
    }