code: private void insertEJBRefsInEJBJar(Document document, EJBInfo ejbInfo, String ejbLinkValue, List ejbList) {
          for (Object ejb : ejbList) {
              if (ejbInfo.isLocal())
                  insertEJBLocalRefInEJBJar((Element)ejb, ejbInfo, ejbLinkValue, document);
              else
                  insertEJBRefInEJBJar((Element)ejb, ejbInfo, ejbLinkValue, document);
          }
      }
docs: Insert EJB references in all of the descriptors of the EJB's in the supplied list
  
  @param document      DOM tree of an ejb-jar.xml file.
  @param ejbInfo       Contains information about the EJB control.
  @param ejbLinkValue  The ejb-link value for the EJBs.
  @param ejbList       The list of EJB's