@RequestMapping(value = "/user/{userName}")
    public String getMainPage(Model model, @PathVariable String userName) {
        User user = userService.getUserName(userName);
        DAOExampleObject daoExampleObject = userService.getAttackFromDao();
        if (user == null) {
            return "404";
        }
        List<SlotInfo> slots = new ArrayList<SlotInfo>();
        for (int i = 0; i < 7; i++) {
            SlotInfo s = new SlotInfo();
            s.setSlotNumber(i);
            if (userService.getCreaturesByUserId(userName).get(i) != null) {
                s.setUrl(userService.getCreaturesByUserId(userName).get(i).getUrl());
                s.setCreature(userService.getCreaturesByUserId(userName).get(i));
            } else {
                s.setUrl(new EmptySlot().getUrl());
            }
            slots.add(s);
        }
        model.addAttribute("slots", slots);
        model.addAttribute("user", user);
        model.addAttribute("DAOExampleObject", daoExampleObject.getAttack());

        Map<Integer, Creature> creaturesByUserId = userService.getCreaturesByUserId(userName);
        model.addAttribute("creatures", creaturesByUserId.values());

        return "User";
    }