{
String jndiName = localBinding.getJndiName();
// if not explicitly specified, then use the default jndi name
if (jndiName == null)
{
jndiName = jndiNameResolver.resolveLocalBusinessDefaultJNDIName(sessionBean);
}
InvocationHandler invocationHandler = new SingletonBeanLocalInvocationHandler(containerRegistryKey, containerGUID, clientInterceptors);
Object proxy = proxyFactory.createProxy(
allLocalinterfaces.toArray(new Class<?>[allLocalinterfaces.size()]), invocationHandler);
Binding binding = new Binding(jndiName, proxy, "EJB3.x Default Local Business Interface");