code: public static boolean validLocale(final Locale locale) {
          for (final Locale found : Locale.getAvailableLocales()) {
              if (found.equals(locale)) {
                  return true;
              }
          }
          return false;
      }
docs: Verifies if the give locale is in the Java list of known locales.
  
  @param locale
  Locale to verify.
  
  @return TRUE if the locale is known else FALSE.