final ClassLoader contextCl = getContextClassLoader();
setContextClassLoader(componentClass.getClassLoader());
try {
while (interceptorIterator.hasNext()) {
try {
final Interceptor interceptor = interceptorIterator.next();
final InterceptorContext context = new InterceptorContext();
//as we use LifecycleInterceptorFactory we do not need to set the method
context.setTarget(instance instanceof ComponentInstance ?
(ComponentInstance)((ComponentInstance) instance).getInstance() :
instance);
context.setContextData(new HashMap<String, Object>());
context.setParameters(EMPTY_OBJECT_ARRAY);
interceptor.processInvocation(context);
} catch (Throwable t) {
throw new RuntimeException("Failed to invoke post construct method for class " + getComponentClass(), t);
}
}
} finally {