code: public static ThorntailConfigurationBuilder create(Configuration config)
      {
          ThorntailConfigurationBuilder builder = new ThorntailConfigurationBuilder();
  
          ConfigurationElement propertiesElem = null;
          try
          {
              propertiesElem = config.getConfigurationElement("properties");
          }
          catch (RuntimeException e)
          {
              // Do nothing
          }
          if (propertiesElem != null)
          {
              Map<String, String> properties = new TreeMap<>();
              propertiesElem.getChildren().stream()
                          .filter(ConfigurationElement.class::isInstance)
                          .map(ConfigurationElement.class::cast)
                          .forEach(elem -> properties.put(elem.getName(), elem.getText()));
              builder.properties(properties);
          }
          return builder;
      }
docs: Create a {@link ThorntailConfigurationBuilder} from a {@link Configuration} object