docs: private String processVariableStatements(String control, String result, TestContext context) {
          if (control.equals(Citrus.IGNORE_PLACEHOLDER)) {
              return control;
          }
  
          Pattern whitespacePattern = Pattern.compile("[^a-zA-Z_0-9\\-\\.]");
          Pattern variablePattern = Pattern.compile("@variable\\(?'?([a-zA-Z_0-9\\-\\.]*)'?\\)?@");
  
          Matcher variableMatcher = variablePattern.matcher(control);
          while (variableMatcher.find()) {
              String actualValue = result.substring(variableMatcher.start());
              Matcher whitespaceMatcher = whitespacePattern.matcher(actualValue);
              if (whitespaceMatcher.find()) {
                  actualValue = actualValue.substring(0, whitespaceMatcher.start());
              }
  
              control = variableMatcher.replaceFirst(actualValue);
              context.setVariable(variableMatcher.group(1), actualValue);
              variableMatcher = variablePattern.matcher(control);
          }
  
          return control;
      }