There was a problem on the aircraft and we were asked to vacate and get on another aircraft. This must have cost them a lot of money. But it was passenger safety that they were ensuring. We got to Dublin 2 hours late BUT we did get there. Staff and captain were very courteous and professional. Well done. It couldn't have been an easy decision to make.