public function deleteGroup($groupId)
{
if ($this->contentTypeGateway->countTypesInGroup($groupId) !== 0) {
throw new Exception\GroupNotEmpty($groupId);
}
$this->contentTypeGateway->deleteGroup($groupId);
}