// now add the accumulated renderers to the RenderKits
for (Map.Entry<String,Map<Document,List<Node>>> entry : renderers.entrySet()) {
RenderKit rk = rkf.getRenderKit(null, entry.getKey());
if (rk == null) {
throw new ConfigurationException(
MessageUtils.getExceptionMessageString(
MessageUtils.RENDERER_CANNOT_BE_REGISTERED_ID,
entry.getKey()));
}
for (Map.Entry<Document,List<Node>> renderEntry : entry.getValue().entrySet()) {
addRenderers(rk, renderEntry.getKey(), renderEntry.getValue());
}
}
// now add the accumulated behavior renderers to the RenderKits
for (Map.Entry<String,Map<Document,List<Node>>> entry : behaviorRenderers.entrySet()) {
RenderKit rk = rkf.getRenderKit(null, entry.getKey());
if (rk == null) {
throw new ConfigurationException(
MessageUtils.getExceptionMessageString(
MessageUtils.RENDERER_CANNOT_BE_REGISTERED_ID,
entry.getKey()));
}