class MotanDtpAdapter extends AbstractDtpAdapter {

    private static final String TP_PREFIX = "motanTp";

    private static final String SERVER_FIELD = "server";

    private static final String EXECUTOR_FIELD = "standardThreadExecutor";

    @Override
    public void refresh(DtpProperties dtpProperties) {
        refresh(dtpProperties.getMotanTp(), dtpProperties.getPlatforms());
    }

    @Override
    protected String getTpPrefix() {
        return TP_PREFIX;
    }

    @Override
    protected void initialize() {<FILL_FUNCTION_BODY>}
}

        super.initialize();

        val beans = ApplicationContextHolder.getBeansOfType(ServiceConfigBean.class);
        if (MapUtils.isEmpty(beans)) {
            log.warn("Cannot find beans of type ServiceConfigBean.");
            return;
        }
        beans.forEach((k, v) -> {
            List<Exporter<?>> exporters = v.getExporters();
            if (CollectionUtils.isEmpty(exporters)) {
                return;
            }
            exporters.forEach(e -> {
                if (!(e instanceof DefaultRpcExporter)) {
                    return;
                }
                val defaultRpcExporter = (DefaultRpcExporter<?>) e;
                val server = (Server) ReflectionUtil.getFieldValue(DefaultRpcExporter.class, SERVER_FIELD, defaultRpcExporter);
                if (Objects.isNull(server) || !(server instanceof NettyServer)) {
                    return;
                }
                val nettyServer = (NettyServer) server;
                val executor = (StandardThreadExecutor) ReflectionUtil.getFieldValue(NettyServer.class, EXECUTOR_FIELD, nettyServer);
                if (Objects.nonNull(executor)) {
                    StandardThreadExecutorProxy proxy = new StandardThreadExecutorProxy(executor);
                    String tpName = TP_PREFIX + "#" + nettyServer.getUrl().getPort();
                    try {
                        ReflectionUtil.setFieldValue(EXECUTOR_FIELD, nettyServer, proxy);
                        putAndFinalize(tpName, executor, proxy);
                    } catch (IllegalAccessException ex) {
                        log.error("DynamicTp adapter, enhance {} failed.", tpName, ex);
                    }
                }
            });
        });
    
<methods>public non-sealed void <init>() ,public Map<java.lang.String,org.dromara.dynamictp.core.support.ExecutorWrapper> getExecutorWrappers() ,public List<org.dromara.dynamictp.common.entity.ThreadPoolStats> getMultiPoolStats() ,public void refresh(List<org.dromara.dynamictp.common.entity.TpExecutorProps>, List<org.dromara.dynamictp.common.entity.NotifyPlatform>) ,public void refresh(org.dromara.dynamictp.core.support.ExecutorWrapper, List<org.dromara.dynamictp.common.entity.NotifyPlatform>, org.dromara.dynamictp.common.entity.TpExecutorProps) <variables>private static final Equator EQUATOR,protected final Map<java.lang.String,org.dromara.dynamictp.core.support.ExecutorWrapper> executors