@Override
public Object processInvocation(InterceptorContext context) throws Exception {
final EJBComponent component = getComponent(context, EJBComponent.class);
// create the instance
final ComponentInstance componentInstance = component.createInstance();
context.putPrivateData(ComponentInstance.class, componentInstance);
//if this is set to true we do not invoke instance.destroy
//as we are not allowed to invoke pre-destroy callbacks
boolean discard = false;
try {