public Object createInterceptor(Class<?> interceptorClass) throws InstantiationException, IllegalAccessException
{
Object instance = interceptorClass.newInstance();
// TODO: This needs to be removed once we have all the RPs functioning
// and the InjectionManager will solely be responsible for injection
InterceptorInjector interceptorInjector = interceptorInjectors.get(interceptorClass);
assert interceptorInjector != null : "interceptorInjector not found for " + interceptorClass;
interceptorInjector.inject(null, instance);
// inject into the interceptor instance using InjectionManager.
// the injection manager in a real environment should never
// be null. But there are various legacy unit tests which
// start up a container in various different ways and it's