public RemoteBundle(BundleInfo bInfo, RemoteGateway gateway, ManageableEntity parent) {
   this.info = bInfo;
   this.gateway = gateway;
   this.parent = parent;
   if (parent != null) {
     this.connection = parent.getConnection();
   }
   try {
     this.on =
         new ObjectName(
             Constants.OSGI_JMX_PATH
                 + "type=bundles,url="
                 + gateway.getUrl()
                 + ",name="
                 + this.info.getName());
     EntitiesEventManager.getInstance().listenTo(this);
   } catch (MalformedObjectNameException e) {
     e.printStackTrace();
   } catch (NullPointerException e) {
     e.printStackTrace();
   }
 }
 public void setBundleInfo(BundleInfo info) {
   this.info = info;
   EntitiesEventManager.getInstance().newEvent(this, EntitiesEventManager.BUNDLE_UPDATED);
 }