docs: public void loadPropertiesAsVariables() {
          BufferedReader reader = null;
  
          try {
              if (propertyFilesSet()) {
                  for (String propertyFilePath : propertyFiles) {
                      Resource propertyFile = new PathMatchingResourcePatternResolver().getResource(propertyFilePath.trim());
  
                      log.debug("Reading property file " + propertyFile.getFilename());
  
                      // Use input stream as this also allows to read from resources in a JAR file
                      reader = new BufferedReader(new InputStreamReader(propertyFile.getInputStream()));
  
                      // local context instance handling variable replacement in property values
                      TestContext context = new TestContext();
  
                      // Careful!! The function registry *must* be set before setting the global variables.
                      // Variables can contain functions which are resolved when context.setGlobalVariables is invoked.
                      context.setFunctionRegistry(functionRegistry);
                      context.setGlobalVariables(globalVariables);
  
                      String propertyExpression;
                      while ((propertyExpression = reader.readLine()) != null) {
  
                          log.debug("Property line [ {} ]", propertyExpression);
  
                          propertyExpression = propertyExpression.trim();
                          if (!isPropertyLine(propertyExpression)) {
                              continue;
                          }
  
                          String key = propertyExpression.substring(0, propertyExpression.indexOf('=')).trim();
                          String value = propertyExpression.substring(propertyExpression.indexOf('=') + 1).trim();
  
                          log.debug("Property value replace dynamic content [ {} ]", value);
                          value = context.replaceDynamicContentInString(value);
  
                          if (log.isDebugEnabled()) {
                              log.debug("Loading property: " + key + "=" + value + " into default variables");
                          }
  
                          if (log.isDebugEnabled() && globalVariables.getVariables().containsKey(key)) {
                              log.debug("Overwriting property " + key + " old value:" + globalVariables.getVariables().get(key)
                                      + " new value:" + value);
                          }
  
                          globalVariables.getVariables().put(key, value);
                          // we need to keep local context up to date in case of recursive variable usage
                          context.setVariable(key, globalVariables.getVariables().get(key));
                      }
  
                      log.info("Loaded property file " + propertyFile.getFilename());
                  }
              }
          } catch (IOException e) {
              throw new CitrusRuntimeException("Error while loading property file", e);
          } finally {
              if (reader != null) {
                  try {
                      reader.close();
                  } catch (IOException e) {
                      log.warn("Unable to close property file reader", e);
                  }
              }
          }
      }