public MetaDataDO copy(final MetaDataDO metaDataDO) {
        return Optional.ofNullable(metaDataDO)
                .map(source -> MetaDataDO.builder()
                        .id(source.getId())
                        .appName(source.getAppName())
                        .path(source.getPath())
                        .pathDesc(source.getPathDesc())
                        .rpcType(source.getRpcType())
                        .serviceName(source.getServiceName())
                        .methodName(source.getMethodName())
                        .parameterTypes(source.getParameterTypes())
                        .rpcExt(source.getRpcExt())
                        .enabled(source.getEnabled())
                        .build())
                .orElse(null);
    }
COpy to entity meta data do.

@param metaDataDO the meta data source do
@return the meta data do
shenyu-admin/src/main/java/org/apache/shenyu/admin/transfer/MetaDataTransfer.java