code: public static PippoSettings getPippoSettings(Settings settings) {
          RuntimeMode runtimeMode = RuntimeMode.PROD;
          for (RuntimeMode mode : RuntimeMode.values()) {
              if (mode.name().equalsIgnoreCase(settings.getMode().toString())) {
                  runtimeMode = mode;
              }
          }
  
          final Properties properties = settings.toProperties();
  
          final PippoSettings pippoSettings = new PippoSettings(runtimeMode);
          for (Map.Entry<Object, Object> entry : properties.entrySet()) {
              Object value = entry.getValue();
              String propertyValue;
              if (value instanceof Collection) {
                  // strip brackets from collection [en,de,ru]
                  propertyValue = Optional.fromNullable(value).or("").toString();
                  propertyValue = propertyValue.substring(1, propertyValue.length() - 1);
              } else {
                  // Object.toString()
                  propertyValue = Optional.fromNullable(value).or("").toString();
              }
              String propertyName = entry.getKey().toString();
              pippoSettings.overrideSetting(propertyName, propertyValue);
          }
  
          return pippoSettings;
      }
docs: Convert Fathom Settings into PippoSettings
  
  @param settings
  @return PippoSettings