public function loadGroupByIdentifier($identifier) { $data = $this->objectStateGateway->loadObjectStateGroupDataByIdentifier($identifier); if (empty($data)) { throw new NotFoundException('ObjectStateGroup', $identifier); } return $this->objectStateMapper->createObjectStateGroupFromData($data); }