protected function discover($resource)
    {
        foreach ($this->loaders as $loader) {
            $res = $loader->load($resource);
            if (!is_null($res)) {
                return $res;
            }
        }
    }