private function createFailure($userMessage, $model = null){
        $typeIdentifier = is_null($model) ? 'unknown type' : $model->getTypeIdentifier();
        $message = 'The portable element cannot be registered "'.$typeIdentifier.'", reason: '.$userMessage;
        \common_Logger::w($message);
        return Report::createFailure($message);
    }