protected function create_feedback($courseid, $itemid, $value) {
        // Case of an id, only maps id of a grade_item.
        // This was idnumber.
        if (!new grade_item(array('id' => $itemid, 'courseid' => $courseid))) {
            // Supplied bad mapping, should not be possible since user
            // had to pick mapping.
            $this->cleanup_import(get_string('importfailed', 'grades'));
            return null;
        }

        // The itemid is the id of the grade item.
        $feedback = new stdClass();
        $feedback->itemid   = $itemid;
        $feedback->feedback = $value;
        return $feedback;
    }