Element parent = (Element) element.getParent();
if (parent == null || !"div".equals(parent.getNormalizedName())
|| !parent.hasAttribute(DataTablesDialect.DIALECT_PREFIX + ":conf")
|| StringUtils.isBlank(parent.getAttributeValue(DataTablesDialect.DIALECT_PREFIX + ":conf"))) {
throw new DandelionDatatablesException(
"The element 'div dt:confType=\"...\"' must be inside an element 'div dt:conf=\"tableId\"'.");
}
}