/**
  * Initializes provided context.
  *
  * @param Context $context
  */
 public function initializeContext(Context $context)
 {
     if (!$context instanceof EntityManagerAwareContext) {
         return;
     }
     $context->setRegistry($this->registry);
 }