public function add($mixed) {
	    $mixedArray = is_array($mixed) ? $mixed : array($mixed);
		foreach ($mixedArray as $element) {
		    if ($element instanceof common_report_Report) {
		        $this->elements[] = $element;
		    } elseif ($element instanceof common_exception_UserReadableException) {
		        $this->elements[] = new static(self::TYPE_ERROR, $element->getUserMessage());
		    } else {
		        throw new common_exception_Error('Tried to add '.(is_object($element) ? get_class($element) : gettype($element)).' to report');
		    }
		}
	}