package Ġcom . b ri ar sh ore . rule Ċ Ċ import Ġjava . util . Tree Set Ċ Ċ import Ġorg . slf 4 j . LoggerFactory Ċ Ċ import Ġcom . thought works . x stream . converters . Marshall ing Context Ċ import Ġcom . thought works . x stream . converters . Un marshall ing Context Ċ import Ġcom . thought works . x stream . converters . collections . Collection Converter Ċ import Ġcom . thought works . x stream . io . Hierarchical StreamReader Ċ import Ġcom . thought works . x stream . io . Hierarchical Stream Writer Ċ import Ġcom . thought works . x stream . mapper . Mapper Ċ Ċ /** Ċ Ġ* ĠClass : ĠCustom Tree Set Converter Ċ Ġ*/ Ċ class ĠCustom Tree Set Converter ( mapper : ĠMapper ) Ġ: ĠCollection Converter ( mapper , ĠTree Set :: class . java ) Ġ{ ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġlogger . debug (" Custom Tree Set Converter () Ġconstructor ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġmarshal ( source : ĠAny , Ġwriter : ĠH ierarchical Stream Writer , Ġcontext : ĠMar shall ing Context ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . marshal ( source , Ġwriter , Ġcontext ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġunmarshal ( reader : ĠH ierarchical StreamReader , Ġcontext : ĠUn marshall ing Context ): ĠAny Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġsuper . un marshal ( reader , Ġcontext ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġ@ Transient Ġprivate Ġval Ġlogger Ġ= ĠLoggerFactory . getLogger ( Custom Tree Set Converter :: class . java ) ĊĠĠĠ Ġ} Ċ } Ċ