class DefaultImportsElement extends ElementDefinition<List<DefaultImport>> {

    @Override
    public List<DefaultImport> getValue(BaseElement element) {
        List<ExtensionAttributeValue> extValues = element.getExtensionValues();

        List<DefaultImport> defaultImports = extValues.stream()
                .map(ExtensionAttributeValue::getValue)
                .flatMap((Function<FeatureMap, Stream<?>>) extensionElements -> {
                    List o = (List) extensionElements.get(DOCUMENT_ROOT__IMPORT, true);
                    return o.stream();
                })
                .map(m -> new DefaultImport(((ImportType) m).getName()))
                .collect(Collectors.toList());

        return defaultImports;
    }

    public  DefaultImportsElement(String name);

}