code: public static Locale associatedLocale(Associator assoc) {
          return assoc.associated(Selection.class)
              .map(sel -> sel.get()[0]).orElse(Locale.getDefault());
      }
docs: Convenience method to retrieve a locale from an associator.
  
  @param assoc the associator
  @return the locale