OSGi-fying the library