I've been using the IEngine's getClassResolver() to get .js files that are
inside .jar files on the classpath. I'm doing this in renderComponent
methods so that I can add them as external scripts via PageRenderSupport (I
ripped this idea off from tacos' AjaxFormSupportImpl class). What's the
best way to do this now that getClassResolver() is deprecated? The
deprecation message says that it can be injected in to services, but I'm not
in a service, I'm in a component. And is there some other better way to
solve my underlying problem, that of trying to use .js files that are on the
classpath somewhere?