{
SessionProxyInvocationHandler handler = (SessionProxyInvocationHandler) Proxy.getInvocationHandler(reference);
id = (Serializable) handler.getTarget();
}
@Deprecated
Ejb3Registrar registrar = Ejb3RegistrarLocator.locateRegistrar();
// Get the resolver
EndpointResolver resolver = registrar.lookup(MC_BIND_NAME_ENDPOINT_RESOLVER, EndpointResolver.class);
this.ejbClassName = descriptor.getBeanClass().getSimpleName();
endpointMcBindName = resolver.resolve(deploymentUnit, ejbClassName);
this.stateful = descriptor.isStateful();
}