package Ġcom . wit ty code . po e level ing helper . build import . services Ċ Ċ import Ġcom . fasterxml . jackson . data format . xml . Xml Mapper Ċ import Ġcom . wit ty code . po e level ing helper . build import . model . Po B Content Ċ import Ġcom . wit ty code . po e level ing helper . build import . model . attach Quest Unlock Ċ import Ġcom . wit ty code . po e level ing helper . gem import . services . Gem Info Accessor Ċ import Ġorg . slf 4 j . LoggerFactory Ċ import Ġorg . springframework . stereotype . Service Ċ import Ġorg . springframework . web . client . Rest Template Ċ Ċ @ Service Ċ class ĠP ob Build Accessor ( ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġp ob To Xml Converter : ĠP ob To Xml Converter , ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġrest Template : ĠRest Template , ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġgem Info Accessor : ĠGem Info Accessor Ċ ) Ġ{ ĊĠĠĠ Ġprivate Ġval Ġlogger Ġ= ĠLoggerFactory . getLogger ( P ob Build Accessor :: class . java ) ĊĊĠĠĠ Ġfinal Ġlateinit Ġvar Ġpo B Content : ĠPo B Content ĊĠĠĠĠĠĠĠ Ġprivate Ġset ĊĊĠĠĠ Ġfun Ġload P ob Build ( past eb in Url : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġlogger . info (" Import ing Ġfrom ĠUrl Ġ{}", Ġpast eb in Url ) ĊĠĠĠĠĠĠĠ Ġval Ġraw Paste Bin Content Ġ= Ġrest Template . get For Object ( past eb in Url , ĠString :: class . java ) ĊĠĠĠĠĠĠĠ Ġlogger . info (" Import Ġfinished , Ġde compress ing ") ĊĠĠĠĠĠĠĠ Ġval Ġde compressed Xml From Paste Bin : ĠString ? Ġ= Ġp ob To Xml Converter . convert P ob Raw To Xml String ( raw Paste Bin Content ) ĊĠĠĠĠĠĠĠ Ġlogger . info (" De compression Ġfinished , Ġmapping ĠXML ") ĊĠĠĠĠĠĠĠ Ġval Ġxml Mapper Ġ= ĠXml Mapper () ĊĠĠĠĠĠĠĠ Ġthis . po B Content Ġ= Ġxml Mapper . readValue ( de compressed Xml From Paste Bin , ĠPo B Content :: class . java ) ĊĠĠĠĠĠĠĠ Ġpo B Content . skills . skills . attach Quest Unlock ( gem Info Accessor ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġis Po B Build Imported (): ĠBoolean Ġ= Ġthis :: po B Content . isInitialized Ċ }