public function getAction($id, Request $request)
{
$locale = $this->getRequestParameter($request, 'locale', true);
$findCallback = function ($id) use($locale) {
$entity = $this->getCategoryManager()->findById($id);
return $this->getCategoryManager()->getApiObject($entity, $locale);
};
$view = $this->responseGetById($id, $findCallback);
return $this->handleView($view);
}