package Ġcom . github . ca ay 2 0 0 0 . tt k . context . world . cargo . application . consume Ċ Ċ import Ġarrow . core . get Or Handle Ċ import Ġcom . github . ca ay 2 0 0 0 . tt k . context . shared . domain . to Domain Id Ċ import Ġcom . github . ca ay 2 0 0 0 . tt k . context . world . World Command Ċ import Ġcom . github . ca ay 2 0 0 0 . tt k . context . world . stop . domain . Stop Repository Ċ import Ġcom . github . ca ay 2 0 0 0 . tt k . lib . event bus . command . CommandHandler Ċ import Ġjava . util . UUID Ċ Ċ class ĠCons ume Cargo CommandHandler ( stop Repository : ĠStop Repository ) Ġ: ĠCommand Handler < Consume Cargo Command > Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġconsume Cargo Service Ġ= ĠCons ume Cargo Service ( stop Repository ) ĊĊĠĠĠ Ġoverride Ġfun Ġinvoke ( command : ĠCons ume Cargo Command ) Ġ= ĊĠĠĠĠĠĠĠ Ġconsume Cargo Service . invoke ( stop Id Ġ= Ġcommand . stop Id . to Domain Id (), Ġcargo Id Ġ= Ġcommand . cargo Id . to Domain Id ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. get Or Handle Ġ{ Ġthrow Ġit Ġ} Ċ } Ċ Ċ data Ġclass ĠCons ume Cargo Command ( override Ġval Ġworld Id : ĠUUID , Ġval Ġstop Id : ĠUUID , Ġval Ġcargo Id : ĠUUID ) Ġ: ĊĠĠĠ ĠWorld Command Ġ{ ĊĠĠĠ Ġoverride Ġval Ġcommand Id : ĠUUID Ġ= ĠUUID . randomUUID () Ċ } Ċ