code: public static String get(
          String calendarType,
          DisplayStyle style,
          Locale locale
      ) {
  
          DisplayMode mode = DisplayMode.ofStyle(style.getStyleValue());
  
          if (calendarType.equals(CalendarText.ISO_CALENDAR_TYPE)) {
              return CalendarText.patternForDate(mode, locale);
          }
  
          StringBuilder sb = new StringBuilder();
          sb.append("F(");
          sb.append(Character.toLowerCase(mode.name().charAt(0)));
          sb.append(')');
          String key = sb.toString();
  
          PropertyBundle rb = GenericTextProviderSPI.getBundle(calendarType, locale);
  
          if (!rb.containsKey(key)) {
              rb = GenericTextProviderSPI.getBundle("generic", locale);
          }
  
          return rb.getString(key);
  
      }
docs: <p>Determines a suitable date pattern. </p>
  
  @param   calendarType    general calendar type
  @param   style           format style
  @param   locale          desired language and/or country
  @return  localized date pattern
  @throws  UnsupportedOperationException if given style is not supported
  @since   3.10/4.7