Currently the ResolutionView tries to adapt to the special class
RepositoryResourceElement but it does not really need that specific one.
That leads to the situation that other elements (for example
RepositoryBundle) are not handled for this case and are later tried to
be converted in a much more complex way (e.g. by using a file).
This now changes the code to use the base interface ResourceProvider
what can cover a lot more use-cases, and the implementors of such
interface probably know best how to fetch a resource. Additionally
another step is taken here to adapt the element itself to a resource
before falling back to file based approaches.