private WSComponentInstanceAssociationInterceptor() {}
@Override
public Object processInvocation(final InterceptorContext interceptorContext) throws Exception {
final WSComponent wsComponent = (WSComponent)interceptorContext.getPrivateData(Component.class);
BasicComponentInstance pojoComponentInstance = null;
if (interceptorContext.getPrivateData(ManagedReference.class) != null) {
ManagedReference reference = interceptorContext.getPrivateData(ManagedReference.class);
pojoComponentInstance = (BasicComponentInstance)wsComponent.createInstance(reference.getInstance());
} else {
pojoComponentInstance = wsComponent.getComponentInstance();