private String getDocumentParserClassName(String extension) throws ParsingException {
String className = configuration.getString("document.parser." + extension, null);
if (className == null)
throw new ParsingException("Document type not supported.");
else
return className;
}