private function _addAssignmentTaskNotification($request, $type, $userId, $submissionId)
{
$notificationDao = DAORegistry::getDAO('NotificationDAO');
/* @var $notificationDao NotificationDAO */
$notificationFactory = $notificationDao->getByAssoc(ASSOC_TYPE_SUBMISSION, $submissionId, $userId, $type);
if ($notificationFactory->wasEmpty()) {
$context = $request->getContext();
$notificationMgr = new NotificationManager();
$notificationMgr->createNotification($request, $userId, $type, $context->getId(), ASSOC_TYPE_SUBMISSION, $submissionId, NOTIFICATION_LEVEL_TASK);
}
}