public static String getLocalHomeJndiName(EJBContainer container)
{
// Use explicitly-specified binding, if defined
LocalHomeBinding binding = container.getAnnotation(LocalHomeBinding.class);
if (binding != null)
return binding.jndiBinding();
// Use Default JNDI Binding Policy
JBossSessionBeanMetaData smd = (JBossSessionBeanMetaData)container.getXml();
String jndiName = smd.getLocalHomeJndiName();
return jndiName;