package Ġcom . sw iss chain . matching . engine . holders Ċ Ċ import Ġcom . sw iss chain . matching . engine . da os . Asset Ċ import Ġcom . sw iss chain . matching . engine . database . cache . Assets Cache Ċ import Ġcom . sw iss chain . matching . engine . services . validators . impl . ValidationException Ċ import Ġcom . sw iss chain . matching . engine . services . validators . impl . ValidationException . Validation . UNKNOWN _ AS SET Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . stereotype . Component Ċ Ċ @ Component Ċ class ĠAssets Holder Ġ@ Autowired Ġconstructor Ġ( private Ġval Ġassets Cache : ĠAssets Cache ) Ġ{ ĊĠĠĠ Ġfun Ġget Asset ( broker Id : ĠString , Ġasset Id : ĠString ): ĠAsset Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġget Asset Allow Null s ( broker Id , Ġasset Id ) Ġ?: Ġthrow ĠValidation Exception ( UNKNOWN _ AS SET , Ġ" Unable Ġto Ġfind Ġasset Ġ$ asset Id ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Asset Allow Null s ( broker Id : ĠString , Ġasset Id : ĠString ): ĠAsset ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġassets Cache . get Asset ( broker Id , Ġasset Id ) ĊĠĠĠ Ġ} Ċ }