public static void updateRestTestRequest(RestTestRequestStep restTestRequestStep) {
try {
RestRequestStepConfig restRequestStepConfig = (RestRequestStepConfig) restTestRequestStep.getConfig()
.getConfig();
RestRequestConfig restRequestConfig = restRequestStepConfig.getRestRequest();
OldRestRequestConfig oldConfig = OldRestRequestConfig.Factory.parse(restRequestConfig.toString());
RestParametersConfig oldParams = oldConfig.getParameters();
if (oldParams != null) {
StringToStringMapConfig newParams = restRequestConfig.addNewParameters();
for (RestParameterConfig oldParam : oldParams.getParameterList()) {
if (StringUtils.hasContent(oldParam.getValue())) {