public final Document getDocument(Map description, Object object)
throws Exception {
if (supports(object.getClass())) {
return doGetDocument(description, object);
} else {
throw new DocumentHandlerException(
"The document handler does not support the class "
+ object.getClass());
}
}