}
@Override
protected List<Interceptor> applyInjections(Object instance) {
// TODO: a temporary hack until injection interceptors are in place
BaseSessionInvocationContext invocationContext = new BaseSessionInvocationContext(null, null, null) {
@Override
public Object proceed() throws Exception {
throw new RuntimeException("Do not call proceed");
}
};
BaseSessionContext instanceContext = new BaseSessionContext(this, instance);
invocationContext.setEJBContext(instanceContext);
CurrentInvocationContext.push(invocationContext);
try {
return super.applyInjections(instance);
} finally {
CurrentInvocationContext.pop();