303132333435363738
private ShipmentRepository repository; @Override public Void handle(DeliverShipmentCommand command) { Shipment shipment = repository.load(command.getShipmentId()); shipment.deliver(); return null; } }