package Ġcom . template . webserver Ċ Ċ import Ġcom . template . flows . Issue Cash Flow Ċ import Ġnet . cord a . core . contracts . Amount Ċ import Ġnet . cord a . core . identity . C ord a X 5 0 0 Name Ċ import Ġnet . cord a . core . messaging . start Flow Ċ import Ġorg . slf 4 j . LoggerFactory Ċ import Ġorg . springframework . http . HttpStatus Ċ import Ġorg . springframework . http . MediaType Ċ import Ġorg . springframework . http . Response Entity Ċ import Ġorg . springframework . web . bind . annotation .* Ċ import Ġjava . util .* ĊĊ Ċ val ĠSERVICE _ NAMES Ġ= ĠlistOf (" Not ary ", Ġ" Network ĠMap ĠService ") Ċ Ċ @ RestController Ċ @ RequestMapping ("/") Ġ// ĠThe Ġpaths Ġfor ĠHTTP Ġrequests Ġare Ġrelative Ġto Ġthis Ġbase Ġpath . Ċ class ĠController ( rpc : ĠNode RPC Connection ) Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġmy Legal Name Ġ= Ġrpc . proxy . node Info (). legal Id entities . first (). name ĊĠĠĠ Ġprivate Ġval Ġproxy Ġ= Ġrpc . proxy ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġlogger Ġ= ĠLoggerFactory . getLogger ( RestController :: class . java ) ĊĠĠĠ Ġ} Ċ Ċ }