private List<NamedReader> getAllDataFromDirectory(Path path, String namePrefix, String fileNameSuffix, boolean recursive) {
        List<NamedReader> result = new ArrayList<>();
        List<String> children = getChildren(path);

        try {
            for (String child : children) {
                if (fileNameSuffix == null || child.endsWith(fileNameSuffix)) {
                    result.add(new NamedReader(namePrefix + child, reader(getData(path.append(child)))));
                }
                if (recursive)
                    result.addAll(getAllDataFromDirectory(path.append(child),
                                                          namePrefix + child + "/", fileNameSuffix, recursive));
            }
            return result;
        } catch (Exception e) {
            throw new RuntimeException("Could not retrieve all data from '" + path + "' in zookeeper", e);
        }
    }
As above, except

@param namePrefix the prefix to prepend to the returned reader names
configserver/src/main/java/com/yahoo/vespa/config/server/zookeeper/ZKApplication.java