code: @SuppressWarnings("unchecked")
      public ManagedSet parseStatements(Element element, ParserContext parserContext) {
          ManagedSet statements = new ManagedSet();
          NodeList childNodes = element.getChildNodes();
          for (int i = 0; i < childNodes.getLength(); i++) {
  
              Node child = childNodes.item(i);
  
              if (child.getNodeType() == Node.ELEMENT_NODE) {
  
                  Element childElement = (Element) child;
  
                  String localName = child.getLocalName();
  
                  if ("statement".equals(localName)) {
  
                      BeanDefinition definition = parserContext.getDelegate().parseCustomElement(childElement);
                      statements.add(definition);
                  } else if ("ref".equals(localName)) {
                      String ref = childElement.getAttribute("bean");
                      statements.add(new RuntimeBeanReference(ref));
                  }
              }
          }
          return statements;
      }
docs: Parses out the individual statement elements for further processing.
  
  @param element
  the esper-template context
  @param parserContext
  the parser's context
  @return a set of initialized esper statements