public function updateObjectStateGroup($objectStateGroupId, Request $request)
{
$updateStruct = $this->inputDispatcher->parse(new Message(array('Content-Type' => $request->headers->get('Content-Type')), $request->getContent()));
$objectStateGroup = $this->objectStateService->loadObjectStateGroup($objectStateGroupId);
try {
$updatedStateGroup = $this->objectStateService->updateObjectStateGroup($objectStateGroup, $updateStruct);
return $updatedStateGroup;
} catch (InvalidArgumentException $e) {
throw new ForbiddenException($e->getMessage());
}
}