/* */ }
/* */
/* 1755 */ String jndiName = enterpriseBean.getJndiName();
/* 1756 */ if ((jndiName != null) && (!jndiName.trim().equals("")))
/* */ {
/* 1758 */ RemoteBindingImpl remoteBindingAnnotation = new RemoteBindingImpl();
/* 1759 */ remoteBindingAnnotation.setJndiBinding(jndiName);
/* 1760 */ addClassAnnotation(container, RemoteBinding.class, remoteBindingAnnotation);
/* 1761 */ log.debug("Adding " + RemoteBinding.class.getName() + " to " + container.toString() + ": " + remoteBindingAnnotation.toString());
/* */
/* 1763 */ return;
/* */ }
/* */
/* 1766 */ List bindingsList = enterpriseBean.getRemoteBindings();
/* 1767 */ if ((bindingsList == null) || (bindingsList.size() == 0))
/* */ {
/* 1769 */ addSimpleJndiAnnotations(container, enterpriseBean);
/* 1770 */ return;
/* */ }
/* */
/* 1773 */ AnnotationRepository annotations = container.getAnnotations();
/* */
/* 1775 */ annotations.disableAnnotation(RemoteBinding.class.getName());
/* */
/* 1777 */ List bindingAnnotationsList = new ArrayList();
/* */
/* 1779 */ for (RemoteBindingMetaData binding : bindingsList)
/* */ {
/* 1781 */ RemoteBindingImpl bindingAnnotation = new RemoteBindingImpl();
/* */
/* 1783 */ if (binding.getJndiName() != null) {
/* 1784 */ bindingAnnotation.setJndiBinding(binding.getJndiName());
/* */ }
/* 1786 */ if (binding.getClientBindUrl() != null) {
/* 1787 */ bindingAnnotation.setBindUrl(binding.getClientBindUrl());
/* */ }
/* 1789 */ if (binding.getInterceptorStack() != null) {
/* 1790 */ bindingAnnotation.setStack(binding.getInterceptorStack());
/* */ }
/* 1792 */ if (binding.getProxyFactory() != null) {
/* 1793 */ bindingAnnotation.setFactory(binding.getProxyFactory());
/* */ }
/* 1795 */ bindingAnnotationsList.add(bindingAnnotation);
/* */ }
/* */
/* 1799 */ RemoteBindingsImpl bindingsAnnotation = new RemoteBindingsImpl(bindingAnnotationsList);