code: public static String getCookieValue(Object value) {
          String strVal = ObjectUtils.toString(value);
          try {
              strVal = URLEncoder.encode(strVal, "UTF-8");
          } catch (UnsupportedEncodingException e) {
              e.printStackTrace();
          }
  
          return strVal;
      }
docs: Object value를 Cookie 값으로 변환한다.
  
  @param value
  @return