for (ConfigurationResource faceletConfigResource : faceletConfigResources) {
this.faceletConfigResources.add(faceletConfigResource.getConfigurationResourceURL(bundle));
}
serviceReference = bundle.getBundleContext().getServiceReference(ConfigRegistry.class.getName());
if (serviceReference != null) {
ConfigRegistry configRegistry = (ConfigRegistry) bundle.getBundleContext().getService(serviceReference);
List<URL> dependentFaceletsConfigResources = configRegistry.getDependentFaceletsConfigResources(bundle.getBundleId());
if (dependentFaceletsConfigResources != null) {
this.faceletConfigResources.addAll(dependentFaceletsConfigResources);
}
} else {
logger.warn("Fail to find ConfigRegistry service, those *.taglib.xml from dependent bundles will not be registered in current web application " + bundle.getSymbolicName());