I'm not sure to understand the second condition ```service instanceof RegisteredServiceImpl```: I don't think it will work in the following use case: I have defined an Ant Pattern and I updated my service url with a new regular expression starting with ```^```.
Maybe  a test would confirm (or not) the expected habviour...