I\'ve initialized cooke like this in my JSP,
String timeStamp = new SimpleDateFormat(\"dd:MM:yyyy_HH:mm:ss:SSS\").format(Calendar.getInstance().getTime()); t
In kotlin it will be much shorter:
fun HttpServletRequest.getCookie( name: String) = cookies.firstOrNull { it.name == name }