if (eventProducer.getSwitch().getStatus().equals(SwitchStatus.OFF)) {
System.err.println("Cluster event producer is OFF");
return null;
}
CellarSupport support = new CellarSupport();
support.setClusterManager(this.clusterManager);
support.setGroupManager(this.groupManager);
support.setConfigurationAdmin(this.configurationAdmin);
for (String url : urls) {
// check if the bundle is allowed
if (support.isAllowed(group, Constants.CATEGORY, url, EventType.OUTBOUND)) {
// get the name and version in the location MANIFEST
JarInputStream jarInputStream = new JarInputStream(new URL(url).openStream());
Manifest manifest = jarInputStream.getManifest();
String name = manifest.getMainAttributes().getValue("Bundle-Name");