/**
* Loads an object state group
*
* @param mixed $groupId
*
* @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException if the group was not found
*
* @return \eZ\Publish\SPI\Persistence\Content\ObjectState\Group
*/
public function loadGroup($groupId)
{
$data = $this->objectStateGateway->loadObjectStateGroupData($groupId);
if (empty($data)) {
throw new NotFoundException("ObjectStateGroup", $groupId);
}
return $this->objectStateMapper->createObjectStateGroupFromData($data);
}