private static boolean doesElementContainTranslatableContentV2(final Node node) {
        final NodeList children = node.getChildNodes();
        if (children != null) {
            // check to see if any of the children are translatable nodes
            for (int j = 0; j < children.getLength(); ++j) {
                final Node child = children.item(j);
                final String childName = child.getNodeName();

                if (TRANSLATABLE_ELEMENTS_OLD.contains(childName)) {
                    // This child node is itself translatable, so return true
                    return true;
                } else if (doesElementContainTranslatableContentV2(child)) {
                    // check if this child contains translatable nodes
                    return true;
                }
            }
        }

        return false;
    }
private static boolean doesElementContainTranslatableContentV2 ( final Node node ) { final NodeList children = node . getChildNodes ( ) ; if ( children != null ) { for ( int j = 0 ; j < children . getLength ( ) ; ++ j ) { final Node child = children . item ( j ) ; final String childName = child . getNodeName ( ) ; if ( TRANSLATABLE_ELEMENTS_OLD . contains ( childName ) ) { return true ; } else if ( doesElementContainTranslatableContentV2 ( child ) ) { return true ; } } } return false ; }
Check if a node has child translatable elements.

@param node The node to check for child translatable elements.
@return True if the node has translatable child Elements.