try {
if (!FileTypeUtil.isFilePresentOnDisk(path)) {
throw new ShowFileContentServiceException(
"File doesn't exist anymore on disc");
}
FileExtensionValidator fileExtensionValidator = new ShowFileExtensionValidator();
fileExtensionValidator.validate(name);
FileType fileType = FileType.getFileTypeByFileName(name);
br.com.jteam.jfcm.model.File fileToBeViewed = FileFactory.getInstance(
fileType).createFile(name, path);
return fileToBeViewed;
} catch (IncorrectFileExtensionException ex) {