return folder;
}
private static Text newText(String filename, InputStream inputStream)
throws IOException {
Text text = new Text();
text.setId(Filenames.asId(filename));
text.setTitle(Filenames.asTitle(filename));
text.setLastModified(new Date());
text.setContent(readString(inputStream));
text.setPlain(true);
return text;
}