private function loadModelRules()
    {
        foreach ($this->rules['modelRules'] as $modelClass => $modelPolicy) {
            $resourceId = call_user_func_array($this->config['modelResourceGenerator'], [$modelClass]);
            $this->acl->addResource(new Resource($resourceId));
            $modelAccessPolicy = [];
            if (isset($modelPolicy['access'])) {
                $modelAccessPolicy = $modelPolicy['access'];
            }
            foreach ($modelAccessPolicy as $ruleSet => $privileges) {
                foreach ($privileges as $privilege) {
                    $this->enforceRuleset($ruleSet, ['privileges' => $privilege, 'resources' => $resourceId]);
                }
            }
            $this->loadModelFieldPolicy($modelClass, $modelPolicy);
        }
    }