```sql select map(heap.objects('org.springframework.core.env.PropertiesPropertySource'), function (it) { var res = ''; var source = it.source; var table = source.table; if (table != null) { for(var i=0; i<length(table); i++){ var hashtable = table[i]; if (hashtable != null) { res += toHtml(hashtable.key.toString()); res += ' -> '; res += toHtml(hashtable.value.toString()); res += '<br>'; } } }
select map(heap.objects('org.springframework.core.env.MapPropertySource'), function (it) { var res = ''; var source = it.source; var type = toHtml(source); if(type.indexOf('HashMap')>-1){ var head = source.head; while(head != null) { res += toHtml(head.key.toString()); res += ' -> '; res += toHtml(head.value.toString()); res += '<br>'; head = head.after } }elseif(type.indexOf('SingletonMap') > -1){ res += toHtml(source.k.toString()); res += ' -> '; res += toHtml(source.v.toString()); res += '<br>'; }elseif (type.indexOf('Properties') > -1){ var table = source.table; if (table != null) { for(var i=0; i<length(table); i++){ var item = table[i]; if (item != null) { res += toHtml(item.key.toString()); res += ' -> '; res += toHtml(item.value.toString()); res += '<br>'; } } }