protected function createEvent($name, CommandInterface $command)
	{
	    $event = new ServiceEvent();
	    $event->setName($name);
	    $event->setCommand($command);
	    $event->setParams($command->getParams());

	    return $event;
	}