protected function newResource(ResourceConfiguration $config)
    {
        return new Resource(
            $this->newRepository($config),
            $this->newValidator($config),
            $this->newSecurity(),
            $this,
            $config
        );
    }