Despite it doesn’t answer your question, I think you still can use this method for your own services:
For backwards compatibility, it will still return the caller’s own services.
If you’d just like to remove the deprecation warning, use @SuppressWarnings("deprecation")