class ExtensionClientImpl implements ExtensionClient {

    private final SofaRuntimeContext sofaRuntimeContext;

    public ExtensionClientImpl(SofaRuntimeContext sofaRuntimeContext) {
        this.sofaRuntimeContext = sofaRuntimeContext;
    }

    @Override
    public void publishExtension(ExtensionParam extensionParam) {<FILL_FUNCTION_BODY>}

    @Override
    public void publishExtensionPoint(ExtensionPointParam extensionPointParam) {
        Assert.notNull(extensionPointParam, "extensionPointParam can not be null.");
        Assert.notNull(extensionPointParam.getName(), "Extension point name can not be null.");
        Assert.notNull(extensionPointParam.getContributionClass(),
            "Extension point contribution can not be null.");
        Assert.notNull(extensionPointParam.getTarget(), "Extension point target can not be null.");

        ExtensionPoint extensionPoint = new ExtensionPointImpl(extensionPointParam.getName(),
            extensionPointParam.getContributionClass());
        Implementation implementation = new DefaultImplementation(
            extensionPointParam.getTargetName());
        implementation.setTarget(extensionPointParam.getTarget());
        ComponentInfo extensionPointComponent = new ExtensionPointComponent(extensionPoint,
            sofaRuntimeContext, implementation);
        sofaRuntimeContext.getComponentManager().register(extensionPointComponent);
    }
}

        Assert.notNull(extensionParam, "extensionParam can not be null.");
        Assert.notNull(extensionParam.getElement(),
            "Extension contribution element can not be null.");
        Assert.notNull(extensionParam.getTargetInstanceName(),
            "Extension target instance name can not be null.");
        Assert.notNull(extensionParam.getTargetName(), "Extension target name can not be null.");

        ExtensionImpl extension = new ExtensionImpl(null, extensionParam.getTargetName(),
            extensionParam.getElement(), sofaRuntimeContext.getAppClassLoader());
        extension.setTargetComponentName(ComponentNameFactory.createComponentName(
            ExtensionPointComponent.EXTENSION_POINT_COMPONENT_TYPE,
            extensionParam.getTargetInstanceName() + ExtensionComponent.LINK_SYMBOL
                    + extensionParam.getTargetName()));
        ComponentInfo extensionComponent = new ExtensionComponent(extension, sofaRuntimeContext);
        sofaRuntimeContext.getComponentManager().register(extensionComponent);
    
<no_super_class>