@Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        try{
        Boolean result = (Boolean) resultFututre.get();
        if (wasInsert == true) {
            if (result == true) {
                request.setAttribute("error", "Item succesfully inserted!");
            } else if (result == false) {
                request.setAttribute("error", "Insertion of item failed!");
            }
        } else if (wasInsert == false) {
            if (result == true) {
                request.setAttribute("error", "Item succesfully removed!");
            } else if (result == false) {
                request.setAttribute("error", "Removal of item failed!");
            }
        }
        request.getRequestDispatcher("/item.jsp").forward(request, response);
        }catch(NullPointerException ex){}
    }