package Ġru . ot us . ot us kotlin . phone sell . pa . business . logic . be . pipelines Ċ Ċ import Ġru . ot us . ot us kotlin . phone sell . pa . business . logic . be . helpers . validation Ċ import Ġru . ot us . ot us kotlin . phone sell . pa . business . logic . be . operations . Pipe Line Finalize Operation Ċ import Ġru . ot us . ot us kotlin . phone sell . pa . business . logic . be . operations . Pipeline Init Operation Ċ import Ġru . ot us . ot us kotlin . phone sell . pa . business . logic . be . st abs . Demand Read Stub Ċ import Ġru . ot us . ot us kotlin . phone sell . pa . common . be . context . Mp Be Context Ċ import Ġru . ot us . ot us kotlin . phone sell . pa . common . be . context . Mp Be Context Status Ċ import Ġru . ot us . ot us kotlin . phone sell . pa . common . be . models . Mp Demand Id Model Ċ import Ġru . ot us . ot us kotlin . phone sell . pa . common . be . models . Mp Demand Model Ċ import Ġru . ot us . ot us kotlin . phone sell . pa . common . be . models . Mp Stub Case Ċ Ċ import Ġru . ot us . ot us kotlin . phone sell . pa . mp . validation . validators . Validator String Non Empty Ċ import Ġru . ot us . ot us kotlin . phone sell . pa . pipelines . k mp . IO peration Ċ import Ġru . ot us . ot us kotlin . phone sell . pa . pipelines . k mp . operation Ċ import Ġru . ot us . ot us kotlin . phone sell . pa . pipelines . k mp . pipeline Ċ Ċ object ĠDem and Read Pipeline : IO peration < Mp Be Context > Ġby Ġpipeline Ġ({ ĊĠĠĠ Ġexecute Ġ( ĠPipeline Init Operation Ġ) ĊĊĠĠĠ Ġexecute ( Demand Read Stub ) ĊĠĠĠ Ġvalidation Ġ{ ĊĠĠĠĠĠĠĠ Ġvalidate < String ?> Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġon Ġ{ Ġrequest Demand Id . id Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġvalidator ( Validator String Non Empty ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġfield Ġ= Ġ" demand - id ", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmessage Ġ= Ġ" Demand ĠID Ġrequested Ġmust Ġnot Ġbe Ġempty " ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ)) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġ} ĊĠĠĠ Ġ// val Ġctx Ġ= ĠM p Be Context () ĊĠĠĠ Ġ// if Ġ( ctx . errors . first (). message . contains (" empty ")) Ġthrow Ġ ĠException ( ctx . errors . first (). message ) ĊĊĠĠĠ Ġexecute Ġ( Pipe Line Finalize Operation ) ĊĠĠĠ Ġ// Repository Ċ })