public function createObjectStateGroup(Request $request)
{
try {
$createdStateGroup = $this->objectStateService->createObjectStateGroup($this->inputDispatcher->parse(new Message(array('Content-Type' => $request->headers->get('Content-Type')), $request->getContent())));
} catch (InvalidArgumentException $e) {
throw new ForbiddenException($e->getMessage());
}
return new Values\CreatedObjectStateGroup(array('objectStateGroup' => $createdStateGroup));
}