}
if (found == false) throw new IllegalStateException(businessInterface.getName() + " is not a business interface for container " + this);
// Obtain SFSB JNDI Registrar
String sfsbJndiRegistrarObjectStoreBindName = this.getJndiRegistrarBindName();
JndiStatefulSessionRegistrar sfsbJndiRegistrar = Ejb3RegistrarLocator
.locateRegistrar().lookup(sfsbJndiRegistrarObjectStoreBindName,JndiStatefulSessionRegistrar.class);
// Get the metadata
JBossSessionBeanMetaData smd = this.getMetaData();
// Get the appropriate JNDI Name
String jndiName = !isRemote ? smd.getLocalJndiName() : smd.getJndiName();
// Find the Proxy Factory Key for this SFSB
String proxyFactoryKey = sfsbJndiRegistrar.getProxyFactoryRegistryKey(jndiName, smd, !isRemote);
// Lookup the Proxy Factory in the Object Store
StatefulSessionProxyFactory proxyFactory = Ejb3RegistrarLocator.locateRegistrar().lookup(proxyFactoryKey,
StatefulSessionProxyFactory.class);