package Ġno . nav . oms org sp enger . form id ling Ċ Ċ import Ġorg . apache . kafka . clients . producer . Kafka Producer Ċ import Ġorg . apache . kafka . clients . producer . Producer Record Ċ import Ġorg . slf 4 j . LoggerFactory Ċ Ċ internal Ġinterface ĠForm id ling Service Ġ{ ĊĠĠĠ Ġfun Ġsend M eld ings best illing er ( meld ings best illing er : ĠList < M eld ings best illing >) Ċ } Ċ Ċ internal Ġclass ĠKafka Form id ling Service ( ĊĠĠĠ Ġprivate Ġval Ġkafka Producer : ĠKafka Producer < String , ĠString >, ĊĠĠĠ Ġprivate Ġval Ġtopic : ĠString Ġ= Ġ" priv at - k 9 - d okument hen del se ") Ġ: ĠForm id ling Service Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġsend M eld ings best illing er ( meld ings best illing er : ĠList < M eld ings best illing >) Ġ{ ĊĠĠĠĠĠĠĠ Ġme ld ings best illing er . forEach Ġ{ Ġme ld ings best illing Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġ( key , Ġvalue ) Ġ= Ġme ld ings best illing . key Value ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsecure Logger . info (" M eld ings best illing =$ value ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġrecord MetaData Ġ= Ġkafka Producer . send ( Producer Record ( topic , Ġkey , Ġvalue )). get () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġlogger . info (" Send t Ġtil Ġ$ record MetaData ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġlogger Ġ= ĠLoggerFactory . getLogger ( Kafka Form id ling Service :: class . java ) ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġsecure Logger Ġ= ĠLoggerFactory . getLogger (" t jen est ek all ") ĊĠĠĠ Ġ} Ċ }