class SwaggerServiceApplicationListener implements
                                              ApplicationListener<ApplicationStartedEvent> {
    private final ComponentManager componentManager;
    private final ClientFactory    clientFactory;

    public SwaggerServiceApplicationListener(SofaRuntimeManager sofaRuntimeManager) {
        this.componentManager = sofaRuntimeManager.getComponentManager();
        this.clientFactory = sofaRuntimeManager.getClientFactoryInternal();
    }

    @Override
    public void onApplicationEvent(ApplicationStartedEvent event) {<FILL_FUNCTION_BODY>}
}

        List<BindingParam> bindingParams = new ArrayList<>();
        bindingParams.add(new RestBindingParam());

        ServiceParam serviceParam = new ServiceParam();
        serviceParam.setInterfaceType(SwaggerService.class);
        serviceParam.setInstance(new SwaggerServiceImpl(componentManager));
        serviceParam.setBindingParams(bindingParams);

        ServiceClient serviceClient = clientFactory.getClient(ServiceClient.class);
        serviceClient.service(serviceParam);
    
<no_super_class>