code: private Cookie generateLanguageCookie(String language) {
          Cookie cookie = new Cookie(applicationCookiePrefix + "_LANG", language);
          cookie.setSecure(true);
          cookie.setMaxAge(TEN_YEARS);
          return cookie;
      }
docs: Generates a language cookie with a very long max age (ten years).
  
  @param language
  @return The cookie