public static Stream<? extends Document> typedChildrenOf(Table table) {
        return Stream.of(
            table.columns().map(Document.class::cast),
            table.primaryKeyColumns().map(Document.class::cast),
            table.indexes().map(Document.class::cast),
            table.foreignKeys().map(Document.class::cast)
        ).flatMap(Function.identity());
    }
Common utility methods specific to the database document model.

@author  Per Minborg
@author  Emil Forslund
@since   2.3.0
runtime-parent/runtime-config/src/main/java/com/speedment/runtime/config/util/DocumentDbUtil.java