Implementing Controller::addData(...).