@SuppressWarnings("unchecked") protected ProcessorResult doProcessElement(Arguments arguments, Element element, HttpServletRequest request, HttpServletResponse response, HtmlTable htmlTable) { Map<String, Map<ConfType, Object>> configs = (Map<String, Map<ConfType, Object>>) RequestUtils.getFromRequest( DataTablesDialect.INTERNAL_BEAN_CONFIGS, request); String tableId = ((Element) element.getParent()).getAttributeValue(DataTablesDialect.DIALECT_PREFIX + ":conf"); String uid = element.getAttributeValue(DataTablesDialect.DIALECT_PREFIX + ":uid"); if (configs != null) { if (configs.containsKey(tableId)) { List<ExtraHtml> extraHtmls = (List<ExtraHtml>) configs.get(tableId).get(ConfType.EXTRAHTML); if (extraHtmls != null && !extraHtmls.isEmpty()) { for (ExtraHtml extraHtml : extraHtmls) { if (extraHtml.getUid().equals(uid)) { Element e = DomUtils.findElement((Element) element.getParent(), "div", DataTablesDialect.DIALECT_PREFIX + ":uid", uid); StringBuilder sb = new StringBuilder(); for (Node child : e.getChildren()) { sb.append(DOMUtils.getHtml5For(child).replaceAll("[\n\r]", "").trim()); } extraHtml.setContent(sb.toString()); } } } } else { logger.warn("No configuration was found for the table with id '{}'", tableId); } } return ProcessorResult.ok(); }