// Lookup the Proxy Factory in the Object Store
StatelessSessionProxyFactoryBase proxyFactory = Ejb3RegistrarLocator.locateRegistrar().lookup(proxyFactoryKey,
StatelessSessionProxyFactoryBase.class);
// Create a new EJB2.x Proxy
proxy = (EJBObject) proxyFactory.createProxyEjb2x();
}
// Create a Handle
StatelessHandleRemoteImpl handle = new StatelessHandleRemoteImpl(proxy);