final String filename = file.getName();
String contentText = "";
AttachmentIndex attachmentIndexBean = new AttachmentIndex();
log.debug("Creating attachment document type --> "+fileExtension);
if ("docx".equals(fileExtension)) {
XWPFWordExtractor parserDoc;
try {
//1- Parsear word Document
parserDoc = IndexerFile.parseWordDocument(file);
//2- Extract word document content
contentText = IndexerFile.extractContentWordDocument(parserDoc);