code: public static void setLocale(Locale locale) {
          if (RepositoryUtils.locale == null) {
              RepositoryUtils.locale = locale;
          } else {
              if (RepositoryUtils.locale != locale) {
                  RepositoryUtils.locale = locale;
                  messages = null;
                  installMessages = null;
              }
          }
      }
docs: This method sets the Locale value for the repository based on input.
  
  @param locale - object that represents a specific geographical, political, or cultural region