private Stream<Map.Entry<String, Document>> namedChildren(Document doc) {
            @SuppressWarnings("unchecked")
            Stream<Map.Entry<String, Document>> s =
             doc.getData()
                .entrySet()
                .stream()
                .filter(e -> e.getValue() instanceof List)
                .flatMap(e -> ((List<Map<String, Object>>) e.getValue()).stream().map(m -> new AbstractMap.SimpleEntry<>(e.getKey(), new BaseDocument(document, m))));

                return s.filter(e -> HasEnabled.test(e.getValue()));
        }
This method is executed after the file has been created but before it is
returned to the code generator.

@param file the file to operate on
generator-parent/generator-translator/src/main/java/com/speedment/generator/translator/AbstractJavaClassTranslator.java