// Bind a proxy per business interface
//TODO This ugly block should be using polymorphism, but I'll allow it as the proxy mechanism
// is going to be replaced entirely by EJB3 Proxy soon
JBossSessionBeanMetaData smd = (JBossSessionBeanMetaData) container.getXml();
BusinessRemotesMetaData remotes = smd.getBusinessRemotes();
BusinessLocalsMetaData locals = smd.getBusinessLocals();
Set<String> businessInterfaces = new HashSet<String>();
boolean isLocal = this.isLocal();
if (!isLocal)
{