public class AdminController /*implements IAdminController*/ {
//@Override
@RequestMapping(method = RequestMethod.GET, value = { "", "/index" })
public ModelAndView index() {
UserInfo userInfo = (UserInfo) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
ModelAndView model = new ModelAndView();
model.addObject("title", "Administrator Dashboard");
model.addObject("message", "Welcome to admin page!");
model.addObject("userName", userInfo.getUsername() + ", " + userInfo.getLastName());
model.setViewName("admin");
return model;
}