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
return ProxyFactoryHelper.getJndiBindingPolicy(container).getDefaultLocalHomeJndiName(
ProxyFactoryHelper.getDeploymentSummaryFromContainer(container));
}