@@ -0,0 +1,1307 @@
+package com.epam.itweek.boosenger.controller;%0A%0Aimport java.util.Collections;%0Aimport java.util.concurrent.Callable;%0A%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.ui.Model;%0Aimport org.springframework.web.bind.annotation.PathVariable;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.RequestParam;%0Aimport lombok.extern.slf4j.Slf4j;%0A%0A@Controller%0A@Slf4j%0Apublic class BoosengerController %7B%0A%0A    @RequestMapping(%22/%7Busername%7D%22)%0A    public Callable%3CString%3E createMessage(@PathVariable(%22username%22) String username, Model model) %7B%0A        return () -%3E %7B%0A            model.addAttribute(%22username%22, username);%0A%0A            model.addAttribute(%22messages%22, Collections.EMPTY_LIST);%0A            return %22messaging/messages%22;%0A        %7D;%0A    %7D%0A%0A    @RequestMapping(value = %22/%7Busername%7D%22, method = RequestMethod.POST)%0A    public Callable%3CString%3E posMessage(@PathVariable(%22username%22) String username,%0A                                       @RequestParam(%22message%22) String postedMessage) %7B%0A        return () -%3E %7B%0A            log.info(%22Is about to post message '%7B%7D' for username: '%7B%7D'%22, postedMessage, username);%0A            return %22redirect:/%22 + username;%0A        %7D;%0A    %7D%0A%7D%0A

Add MVC controller to create messages