Throw an UndefinedDocumentClassException if the target class is not defined.