KnowledgeBuilderErrors errors = localBuilder.getErrors();
Iterator<KnowledgeBuilderError> itErrors = errors.iterator();
int[] errorLines;
StringBuffer errorLineMessage;
while (itErrors.hasNext()) {
KnowledgeBuilderError thisError = itErrors.next();
log.severe(thisError.getMessage());
log.severe(thisError.toString());
errorLines = thisError.getErrorLines();
errorLineMessage = new StringBuffer();
if (errorLines != null) {
for (int errorLine : errorLines) {
errorLineMessage.append(errorLine);
errorLineMessage.append(",");