class SofaRuntimeActivator implements PluginActivator {

    @Override
    public void start(PluginContext context) {
        registerEventHandler(context);
        context.publishService(DynamicJvmServiceProxyFinder.class,
            DynamicJvmServiceProxyFinder.getInstance());
    }

    private void registerEventHandler(final PluginContext context) {<FILL_FUNCTION_BODY>}

    @Override
    public void stop(PluginContext context) {
        // no op
    }
}

        EventAdminService eventAdminService = context.referenceService(EventAdminService.class)
            .getService();
        eventAdminService.register(new SofaBizUninstallEventHandler());
        eventAdminService.register(new SofaBizHealthCheckEventHandler());
        eventAdminService.register(new FinishStartupEventHandler());
        eventAdminService.register(new AfterBizStartupEventHandler());
    
<no_super_class>