public static boolean isAllAncestorsEnabled(Document document) {
        return HasEnabled.test(document)
            && document.ancestors()
                .allMatch(HasEnabled::test);
    }
Returns {@code true} if the specified document and all its ancestors are 
enabled. If at least one ancestor is not enabled, {@code false} is 
returned.

@param document  the document to test
@return          {@code true} if enabled, else {@code false}
runtime-parent/runtime-config/src/main/java/com/speedment/runtime/config/util/DocumentDbUtil.java