// create an invocation handler
InvocationHandler invocationHandler = new NoInterfaceViewInvocationHandler(endpointContext, sessionId, intf,
asyncMethods == null ? new AsyncMethodsMetaData() : asyncMethods);
// Now create the proxy
Object noInterfaceView = new JavassistProxyFactory().createProxy(new Class<?>[] {beanClass}, invocationHandler);
return intf.cast(noInterfaceView);
}