Advisor advisor = (Advisor) container;
// Use explicitly-specified binding, if defined
LocalHomeBinding binding = (LocalHomeBinding) advisor.resolveAnnotation(LocalHomeBinding.class);
if (binding != null)
return binding.jndiBinding();
// Use Default JNDI Binding Policy
return ProxyFactoryHelper.getJndiBindingPolicy(container).getDefaultLocalHomeJndiName(
ProxyFactoryHelper.getDeploymentSummaryFromContainer(container));
}