// TODO: use interceptors to setup a context
SessionInvocationContext invocation = new BaseSessionInvocationContext(null, null, null) {
@Override
public Object proceed() throws Exception
{
bean.beforeCompletion();
return null;
}
};
invocation.setEJBContext(ctx.getEJBContext());
CurrentInvocationContext.push(invocation);