code: public List<ConnectionFactoryResourceType<WebAppDescriptor>> getAllConnectionFactory()
     {
        List<ConnectionFactoryResourceType<WebAppDescriptor>> list = new ArrayList<ConnectionFactoryResourceType<WebAppDescriptor>>();
        List<Node> nodeList = model.get("connection-factory");
        for(Node node: nodeList)
        {
           ConnectionFactoryResourceType<WebAppDescriptor>  type = new ConnectionFactoryResourceTypeImpl<WebAppDescriptor>(this, "connection-factory", model, node);
           list.add(type);
        }
        return list;
     }
docs: Returns all <code>connection-factory</code> elements
  @return list of <code>connection-factory</code>