class ExtensionPointImpl implements ExtensionPointInternal, Serializable {

    @Serial
    private static final long          serialVersionUID = 3939941819263075106L;

    protected String                   name;

    protected String                   documentation;

    protected transient List<Class<?>> contributions    = new ArrayList<>(2);

    protected ClassLoader              beanClassLoader;

    public ExtensionPointImpl(String name, Class<?> contributionClass) {
        this.name = name;
        if (contributionClass != null) {
            this.contributions.add(contributionClass);
        }
    }

    @Override
    public void setBeanClassLoader(ClassLoader beanClassLoader) {
        this.beanClassLoader = beanClassLoader;
    }

    @Override
    public List<Class<?>> getContributions() {
        return contributions;
    }

    @Override
    public boolean hasContribution() {
        return contributions.size() > 0;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getDocumentation() {
        return documentation;
    }

    @Override
    public void addContribution(Class<?> javaClass) {
        this.contributions.add(javaClass);
    }

    @Override
    public void addContribution(String className) {
        this.addContribution(ClassUtils.resolveClassName(className, beanClassLoader));
    }

    @Override
    public Object[] loadContributions(ExtensionInternal extension) throws Exception {<FILL_FUNCTION_BODY>}
}

        if (contributions != null) {
            XMap xmap = new XMap();
            for (Class<?> contrib : contributions) {
                xmap.register(contrib);
            }
            Object[] contributions = xmap.loadAll(new XMapContext(extension.getAppClassLoader()),
                extension.getElement());
            extension.setContributions(contributions);
            return contributions;
        }

        return null;
    
<no_super_class>