code: public PeriodFormatter getPeriodFormatter() {
      if (formatter == null) {
        formatter = ps.newPeriodFormatterFactory()
            .setLocale(localeName)
            .getFormatter();
      }
      return formatter;
    }
docs: Return the current period formatter.
  
  @return the current period formatter