function handler(Request $request, $context, $uuid)
{
// get controller operation
if (null === ($operation = $request->query->get('operation'))) {
$operation = self::$operationMapping[$request->getMethod()];
}
$class = self::$controllerMapping[$context];
$controller = new $class($request, $this->em, $this->view);
$result = $controller->run($operation, $uuid);
$this->view->add($result);
return $this->view->send();
}