Move uuid generator to adapter; makign duration serialization work