public function resolve($template)
    {
        foreach ($this as $resolver) {
            $resource = $resolver->resolve($template);
            if (! is_null($resource)) {
                return $resource;
            }
        }
        return null;
    }