private void copyConsumer(ConsumerConfig<T> consumerConfig, ReferenceConfig<T> referenceConfig) {
        referenceConfig.setId(consumerConfig.getId());
        referenceConfig.setInterface(consumerConfig.getInterfaceId());
        referenceConfig.setGroup(consumerConfig.getUniqueId());
        if (consumerConfig.getParameters() != null && consumerConfig.getParameters().containsKey(VERSION)) {
            referenceConfig.setVersion(consumerConfig.getParameter(VERSION));
        } else {
            referenceConfig.setVersion("1.0");
        }
        referenceConfig.setActives(consumerConfig.getConcurrents());
        referenceConfig.setCluster(consumerConfig.getCluster());
        referenceConfig.setConnections(consumerConfig.getConnectionNum());
        referenceConfig.setRetries(consumerConfig.getRetries());
        referenceConfig.setProxy(consumerConfig.getProxy());
        referenceConfig.setTimeout(consumerConfig.getTimeout());
        referenceConfig.setUrl(consumerConfig.getDirectUrl());
        referenceConfig.setCheck(consumerConfig.isCheck());
        referenceConfig.setLazy(consumerConfig.isLazy());
        referenceConfig.setGeneric(consumerConfig.isGeneric());
        String invokeType = consumerConfig.getInvokeType();
        if (invokeType != null) {
            if (RpcConstants.INVOKER_TYPE_ONEWAY.equals(invokeType)) {
                referenceConfig.setSent(false);
            }
            if (RpcConstants.INVOKER_TYPE_CALLBACK.equals(invokeType)
                || RpcConstants.INVOKER_TYPE_FUTURE.equals(invokeType)) {
                referenceConfig.setAsync(true);
            }
        }
        referenceConfig.setParameters(consumerConfig.getParameters());
    }
Refer t.

@return the t
@throws SofaRpcRuntimeException the init error exception
bootstrap/bootstrap-dubbo/src/main/java/com/alipay/sofa/rpc/bootstrap/dubbo/DubboConsumerBootstrap.java