DocumentParserHelper documentParserHelper = new DocumentParserHelper(addMetaData, addLanguage);
for (String fileName : files) {
DocumentFile<Local> df = doc.getFile(fileName);
String prefix = fileName.replace('.', '_') + "_";
InputStreamParser inputStreamParser = new InputStreamParser(parser);
ParsedData parsedData = inputStreamParser.parse(df.getStream());
documentParserHelper.addParsedDataToDocument(parsedData, doc, prefix);
}
}