HSEARCH-1724 Simplify access to ClassLoaderService