code: private Node findEjbRefInsertPoint(Element parent) {
  
          Element e = DomUtils.getChildElementByName(parent, "ejb-local-ref");
          if (e != null)
              return e;
  
          return findEjbLocalRefInsertPoint(parent);
      }
docs: ejb-refs must be inserted before any ejb-local-ref tags.
  
  @param parent The 'session' or 'entity' XML element.
  @return A suitable node to insert the ejb-ref BEFORE.