if( documentHandler!=null ) {
Document document = documentHandler.getDocument(getResourceDescription(), inputStream);
addFields(document);
return document;
} else {
throw new FileExtensionNotSupportedException("No handler for this resource name");
}
}