You can use the HtmlLibraryManager API to get the path of the JS from
the client lib name. First get the ClientLibrary by passing the category
name in the below API
method-https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/widget/HtmlLibraryManager.html#getLibraries(java.lang.String[],
com.day.cq.widget.LibraryType, boolean, boolean)And then get the include
path of the JS by calling the following API
method-https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/widget/ClientLibrary.h...