public List<User> divideFirstUser(List<User> userList, int index) {
        List finalList = new ArrayList();
        for (int i = 0; i < userList.size(); i++) {
            User user = (User) userList.get(i);
            List firstUserList = null;
            if (i == index) {
                firstUserList = new ArrayList();
            }
            List postList = user.getUserPost();
            List toAddPostList = new ArrayList();
            for (int j = 0; j < postList.size(); j++) {
                if (j % 2 == 0 && i == index) {
                    firstUserList.add((Posts) postList.get(j));
                } else if (j % 2 != 0) {
                    toAddPostList.add((Posts) postList.get(j));
                }
            }
            if (i == 0) {
                User firstUser = new User();
                firstUser.setType(UserType.A);
                firstUser.setId(user.getId());
                firstUser.setUserPost(firstUserList);
                finalList.add(0, firstUser);
            }
            User users = new User();
            users.setType(UserType.B);
            users.setId(user.getId());
            users.setUserPost(toAddPostList);
            finalList.add(users);
        }
        return finalList;
    }