// hooks.add(new LuceneEditor());
MicroKernel kernel = (MicroKernel) service;
services.put(reference, context.registerService(
ContentRepository.class.getName(),
new ContentRepositoryImpl(
kernel, indexProvider, new CompositeHook(hooks)),
new Properties()));
return service;
} else {
context.ungetService(reference);