code: public static Period getPeriod(Config config, String path) {
          try {
              return config.getPeriod(path);
          } catch (ConfigException.Missing | ConfigException.WrongType | ConfigException.BadValue e) {
              if (e instanceof ConfigException.WrongType || e instanceof ConfigException.BadValue) {
                  LOGGER.warn(e.getMessage(), e);
              }
              return null;
          }
      }
docs: Get a configuration as period (parses special strings like "1w"). Return {@code null}
  if missing, wrong type or bad value.
  
  @param config
  @param path
  @return