public function isModelOpen($providerName, $modelId, $ignoreAllState = false)
    {
        if (!$ignoreAllState && isset($this->states['all']) && (1 === $this->states['all'])) {
            return true;
        }

        return (isset($this->states[$providerName][$modelId]) && $this->states[$providerName][$modelId])
            || (isset($this->implicitOpen[$providerName][$modelId]) && $this->implicitOpen[$providerName][$modelId]);
    }