public Object addingService(ServiceReference reference) {
Object service = context.getService(reference);
if (service instanceof MicroKernel) {
List<CommitHook> hooks = new ArrayList<CommitHook>();
hooks.add(new DefaultTypeEditor());
hooks.add(new ValidatingHook(validatorProvider));
// hooks.add(new LuceneEditor());
MicroKernel kernel = (MicroKernel) service;
services.put(reference, context.registerService(
ContentRepository.class.getName(),