code: public int getAllCookies(String name, List<HttpCookie> list) {
          int added = 0;
          if (0 < this.parsedList.size() && null != name) {
              for (HttpCookie cookie : this.parsedList) {
                  if (cookie.getName().equals(name)) {
                      list.add(cookie.clone());
                      added++;
                  }
              }
          }
          return added;
      }
docs: Find all instances of cookies in the cache with the given name and add
  clones of those objects to the input list.
  
  @param name
  @param list
  @return int - number of cookies added to the list