public function loadGroupByIdentifier($identifier) { $groups = $this->mapper->extractGroupsFromRows($this->contentTypeGateway->loadGroupDataByIdentifier($identifier)); if (count($groups) !== 1) { throw new Exception\TypeGroupNotFound($identifier); } return $groups[0]; }