public List<User> divideUsersintoFive(List<User> userList) throws ParseException {
        List finalList = new ArrayList();
        for (User userList1 : userList) {
            User user = (User) userList1;
            List firstPostList = new ArrayList();
            List secondPostList = new ArrayList();
            List thirdPostList = new ArrayList();
            List fourthPostList = new ArrayList();
            List fifthPostList = new ArrayList();
            List postList = user.getUserPost();
            //int equalPostSize = 445;

            for (int j = 0; j < postList.size(); j++) {
                Posts userPost = (Posts) postList.get(j);
                int k = j % 5;
                if (k == 0) {
                    firstPostList.add(userPost);
                } else if (k == 1) {
                    secondPostList.add(userPost);
                } else if (k == 2) {
                    thirdPostList.add(userPost);
                } else if (k == 3) {
                    fourthPostList.add(userPost);
                } else if (k == 4) {
                    fifthPostList.add(userPost);
                }
            }
            
            User userA = new User();
            User userB = new User();
            User userC = new User();
            User userD = new User();
            User userE = new User();

            userA.setType(UserType.A);
            userB.setType(UserType.B);
            userC.setType(UserType.C);
            userD.setType(UserType.D);
            userE.setType(UserType.E);

            userA.setId(user.getId());
            userB.setId(user.getId());
            userC.setId(user.getId());
            userD.setId(user.getId());
            userE.setId(user.getId());

            userA.setUserPost(firstPostList);
            userB.setUserPost(secondPostList);
            userC.setUserPost(thirdPostList);
            userD.setUserPost(fourthPostList);
            userE.setUserPost(fifthPostList);

            finalList.add(userA);
            finalList.add(userB);
            finalList.add(userC);
            finalList.add(userD);
            finalList.add(userE);
        }
        return finalList;
    }