* @return Error result.
*/
protected CheckErrorResult createCheckErrorResult(
PageAnalysis analysis, PageElementISBN isbn,
boolean checkForComment) {
ErrorLevel level = (isbn.isValid() && !isbn.helpRequested()) ?
ErrorLevel.ERROR : ErrorLevel.WARNING;
if (checkForComment) {
String contents = analysis.getContents();
int index = isbn.getEndIndex();
while ((index < contents.length()) && (contents.charAt(index) == ' ')) {