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