Remove obsolete class.
Use a web context aware WebContextProvider.
Use a default search for each endpoint.