public long[] getRegisteredServices(long bid) {
   Bundle b = Activator.bc.getBundle(bid);
   return Util.referencesToLong(b.getRegisteredServices());
 }
 public long[] getServicesInUse(long bid) {
   Bundle b = Activator.bc.getBundle(bid);
   return Util.referencesToLong(b.getServicesInUse());
 }