Adjust for OSGi environment.