Improves OSGi example code.