code: public static Map<String, String> getVariableFromServerXML(BundleContext bundleContext) {
          Map<String, String> theMap = new HashMap<>();
          if (FrameworkState.isValid()) {
              ConfigVariables configVars = getConfigVariables(bundleContext);
  
              // Retrieve the Map of variables that have been defined in the server.xml
              theMap.putAll(configVars.getUserDefinedVariables());
          }
          return theMap;
      }
docs: Get a Map that represents the name/value pairs of <variable> elements in the server.xml
  
  @param bundleContext the context to use in looking up OSGi service references
  @return