Add DI key validator for OSGi environment.