* @param bundle
* @return
* @throws Exception
*/
private static Resource[] getImportedBundlesTagLibs(BundleContext context, Bundle bundle) {
DependencyResolver resolver = new PackageAdminResolver(context);
ImportedBundle[] importedBundles = resolver.getImportedBundles(bundle);
List list = new ArrayList(8);
for (int i = 0; i < importedBundles.length; i++) {
Bundle importedBundle = importedBundles[i].getBundle();