Actually works with OSGi. Finally.