@Override
public Resource parseUpdatedAdapterDocumentFile(URI documentFile,
String docId, String fileName, Optional<String> params)
throws ZanataServiceException {
if (hasAdapterFor(fileName)) {
FileFormatAdapter adapter = getAdapterFor(fileName);
Resource doc;
try {
doc =
adapter.parseDocumentFile(documentFile, new LocaleId(
"en"), params);
} catch (FileFormatAdapterException e) {
throw new ZanataServiceException(
"Error parsing document file: " + fileName, e);
}