public function getContentState($contentId, $stateGroupId) { $data = $this->objectStateGateway->loadObjectStateDataForContent($contentId, $stateGroupId); if (empty($data)) { throw new NotFoundException('ObjectState', array('groupId' => $stateGroupId)); } return $this->objectStateMapper->createObjectStateFromData($data); }