/* */
/* */ private static String getLocalJndiName(Container container, boolean conflictCheck)
/* */ {
/* 834 */ Advisor advisor = (Advisor)container;
/* */
/* 837 */ LocalBinding localBinding = (LocalBinding)advisor.resolveAnnotation(LocalBinding.class);
/* */
/* 840 */ if (localBinding == null)
/* */ {
/* 843 */ String name = getJndiBindingPolicy(container).getDefaultLocalJndiName(getDeploymentSummaryFromContainer(container));
/* */
/* 846 */ if (conflictCheck) {
/* 847 */ checkForJndiNamingConflict(container);
/* */ }
/* 849 */ return name;
/* */ }
/* */
/* 854 */ return localBinding.jndiBinding();
/* */ }