throw new Exception(ex);
throw ex;
    public Osgi2Jini() throws Exception {        try {            RMICodeBaseService.getRMICodeBaseService("/RMI");            Filter filter = Activator.bc.createFilter("(&(" +                    org.osgi.service.device.Constants.DEVICE_CATEGORY + "=" +                    JiniDriver.DEVICE_CATEGORY + ")(" + JiniDriver.EXPORT +                    "=*))");            ServiceTrackerCustomizer serviceTrackerCustomizer = new JiniExporter();            serviceTracker = new ServiceTracker(Activator.bc, filter,                    serviceTrackerCustomizer);        } catch (Exception ex) {            serviceTracker = null;            Debug.printDebugInfo(10,                "Could not setup up the OSGi to Jini Bridge", ex);            throw new Exception(ex);        }    }