I experienced a pretty though to found bug caused by the configoverlay.json file generated when using Solr's ConfigAPI.
Long story short Solr configoverlay.json unmarshalling returns a LinkedHashMap not a NamedList, which makes the line always true so nothing more happen.
Plus, as the unmarshalling returns a map of type Map<String, Object>, I made a really simple method to do the conversion of main types to String.
I experienced a pretty though to found bug caused by the configoverlay.json file generated when using Solr's ConfigAPI.
Long story short Solr configoverlay.json unmarshalling returns a LinkedHashMap not a NamedList, which makes the line always true so nothing more happen.
Plus, as the unmarshalling returns a map of type Map<String, Object>, I made a really simple method to do the conversion of main types to String.