private static boolean hasNoChildren(Element element) {
        List<Node> childNodes = element.childNodes();
        for (Node node : childNodes) {
            if (node instanceof Element) {
                return false;
            }
        }
        return true;
    }
@param element
@return true if the element doesn't have any child elements
tools/i18n/src/main/java/io/apiman/tools/i18n/TemplateScanner.java