private function getModelById($modelId)
    {
        if ($modelId === null) {
            return null;
        }

        $provider = $this->environment->getDataProvider();
        $config   = $provider
            ->getEmptyConfig()
            ->setId($modelId);

        return $provider->fetch($config);
    }