PluginResourceLocator (com.atlassian.plugin.webresource) not available with Confluence 9.2.13

Hello All,

We are working on Confluence Upgrade from 8.5.31 to 9.2.13. We are using component com.atlassian.plugin.webresource.PluginResourceLocator in our code to get DownloadableResource. Purpose here is to get export plugin images coming from macros. Compilation error says package “package com.atlassian.plugin.webresource does not exist”.

pluginResourceLocator = (PluginResourceLocator)ContainerManager.getComponent("pluginResourceLocator");
pluginResourceLocator.getDownloadableResource(imageLocation, getParamters(imageLocation));

Thanks,
Rajesh