@Override
    public Bundle[] getBundles() {
        List<Bundle> bundles = jdiscOsgi.bundles();
        return bundles.toArray(new Bundle[bundles.size()]);
    }
@author Tony Vaagenes
@author bratseth
@author gjoranv
container-core/src/main/java/com/yahoo/osgi/OsgiImpl.java