CheckErrorAlgorithm algorithm = errorResult.getAlgorithm();
PageElementISBN isbn = analysis.isInISBN(beginIndex);
if (isbn != null) {
if ((algorithm != null) &&
(algorithm instanceof CheckErrorAlgorithmISBN)) {
CheckErrorAlgorithmISBN isbnAlgo = (CheckErrorAlgorithmISBN) algorithm;
String reason = isbnAlgo.getReason(isbn);
if ((reason != null) && (reason.length() > 0)) {
if (comment.length() > 0) {
comment.append(" - ");
}
comment.append(reason);