Why the resource Resolver can not be able to manage this? It know the configuration, it could guess the the method to call, it could a new method like `setRepository` ?