It's not up to this PR, but I want to pay your atention. How about, if I want to use different `metadataStores` for different endpoints (at least by type)? Why don't introduce a refernce attribute to the `metadataStore` bean and don't rely on global one?