// Add logging interceptor
InterceptorConstructor constructor = new AbstractServiceInterceptorConstructor(module.getLocation()) {
public void constructServiceInterceptor(InterceptorStack interceptorStack, Module contributingModule)
{
ClassFactory cf = (ClassFactory) contributingModule.getService(ClassFactory.class);
// Create the interceptor with the LoggingInterceptorClassFactory which is quite uncomfortable
// in the moment
LoggingInterceptorClassFactory f = new LoggingInterceptorClassFactory(cf);
Class interceptorClass = f.constructInterceptorClass(interceptorStack, Collections.EMPTY_LIST);
Constructor c = interceptorClass.getConstructors()[0];