class DefaultSuperPomProvider implements SuperPomProvider {

    private final ModelProcessor modelProcessor;

    /**
     * The cached super POM, lazily created.
     */
    private static final Map<String, Model> SUPER_MODELS = new ConcurrentHashMap<>();

    @Inject
    public DefaultSuperPomProvider(ModelProcessor modelProcessor) {
        this.modelProcessor = modelProcessor;
    }

    @Override
    public Model getSuperPom(String version) {
        return SUPER_MODELS.computeIfAbsent(Objects.requireNonNull(version), v -> readModel(version, v));
    }

    private Model readModel(String version, String v) {<FILL_FUNCTION_BODY>}
}

        String resource = "/org/apache/maven/model/pom-" + v + ".xml";
        URL url = getClass().getResource(resource);
        if (url == null) {
            throw new IllegalStateException("The super POM " + resource + " was not found"
                    + ", please verify the integrity of your Maven installation");
        }
        try (InputStream is = url.openStream()) {
            String modelId = "org.apache.maven:maven-model-builder:" + version + "-"
                    + this.getClass().getPackage().getImplementationVersion() + ":super-pom";
            return modelProcessor.read(XmlReaderRequest.builder()
                    .modelId(modelId)
                    .location(url.toExternalForm())
                    .inputStream(is)
                    .strict(false)
                    .build());
        } catch (IOException e) {
            throw new IllegalStateException(
                    "The super POM " + resource + " is damaged"
                            + ", please verify the integrity of your Maven installation",
                    e);
        }
    
<no_super_class>