// Make Java class files in the bundle and resources reachable from Ruby
//don't remove this and in-line it: we need this bundle to explicitly
//import the package org.jruby.util otherwise we get some weird
//classnotfound exception 'org.jruby.util.JRubyClassLoader'
JRubyClassLoader jrubycl = (JRubyClassLoader)runtime.getJRubyClassLoader();
ClassLoader cl = jrubycl.getParent();
if (cl instanceof JRubyOSGiBundleClassLoader) {
((JRubyOSGiBundleClassLoader)cl).addBundle(this.bundle);
} else {
throw new IllegalArgumentException("osgi libraries are only" +
" supported with a JRubyOSGiBundleClassLoader as the " +