public void createNewTimeSpentOnTaskWithUserOnTaskList(JList userOnTaskList) throws SQLException, IOException {
        DefaultListModel model = (DefaultListModel) userOnTaskList.getModel();
        User user = null;

        TimeSpentOnTask tsot = null;
        System.out.println("modelSize" + model.size());
        for (int i = 0; i < model.size(); i++) {

            user = (User) model.get(i);
            tsot = new TimeSpentOnTask(user.getUserID());
            dbHandler.createTimeSpentOnTask(tsot);
            System.out.println("opret timeSpentOnTask");
        }

        // user = getUserByUserName(userName);


    }