public static RequestTemplate from(final RequestTemplate requestTemplate) {
        return new RequestTemplate(
                requestTemplate.getReturnType(),
                requestTemplate.getMethod(),
                requestTemplate.getName(),
                requestTemplate.getUrl(),
                requestTemplate.getContextId(),
                requestTemplate.getPath(),
                requestTemplate.getHttpMethod(),
                requestTemplate.getParamMetadataList(),
                requestTemplate.getHeaders(),
                requestTemplate.getBody());
    }
Create a Request Template from an existing Request Template.

@param requestTemplate to copy from.
@return a new Request Template.
shenyu-sdk/shenyu-sdk-core/src/main/java/org/apache/shenyu/sdk/core/common/RequestTemplate.java