Object documentBuilderObject = forceGetField(renderer, "documentBuilder");
if (documentBuilderObject != null && (documentBuilderObject instanceof DocumentBuilder)) {
documentBuilder = (DocumentBuilder) documentBuilderObject;
log.debug("Loaded documentBuilder={}.", documentBuilder);
} else {
documentBuilder = new DefaultDocumentBuilder();
log.debug("DocumentBuilder member of renderProcessor was null. Loaded default documentBuilder={}",
documentBuilder);
}
} else {
documentBuilder = new DefaultDocumentBuilder();
log.debug("RenderProcessor was null. Loaded default documentBuilder={}", documentBuilder);
}
return documentBuilder;
}