URL[] loaderURLs = new URL[jarsList.size()];
for (int idx = 0; idx < jarsList.size(); idx++) {
loaderURLs[idx] = jarsList.get(idx);
}
baseLibraryLoader = new IsolatedJARLoader(loaderURLs, getClass().getClassLoader());
getLog().info("Creating WGA java library loader");
libraryClassLoadingChain = new DynamicClassLoadingChain(baseLibraryLoader);
WGFactory.setImplementationLoader(libraryClassLoadingChain);
updateLibraryLoader();
}