boolean contains(String subString) {
      for (int i = lines.size() - 1; i >= 0; i--) {
        if (lines.get(i).contains(subString)) {
          return true;
        }
      }
      return false;
    }
create a stack with the given initial lines, reading the rest from the Reader
geode-core/src/main/java/org/apache/geode/internal/util/PluckStacks.java