private function getFirstAdminPerClass($class)
    {
        $code = null;
        $admins = $this->adminPool->getAdminClasses();

        foreach ($admins as $key => $value) {
            if ($key === $class) {
                $code = current($value);
                break;
            }
        }

        return $code === null ?
            $this->adminPool->getAdminByClass($class) : $this->adminPool->getAdminByAdminCode($code);
    }