Serializable session = endpoint.getSessionFactory().createSession(null, null);
logger.debug("Created session " + session + " for " + this.beanClass);
// create an invocation handler
AsyncMethodsMetaData asyncMethods = this.metadata.getAsyncMethods();
InvocationHandler invocationHandler = new NoInterfaceViewInvocationHandler(this.endpointContext, session,
this.beanClass, asyncMethods==null?new AsyncMethodsMetaData():asyncMethods);
// Now create the proxy
Object noInterfaceView = new JavassistProxyFactory().createProxy(new Class<?>[] {beanClass}, invocationHandler);