code: @SuppressWarnings("unchecked")
  	private Map<String, Object> sanitize(String prefix, Map<String, Object> map) {
  		map.forEach((key, value) -> {
  			String qualifiedKey = (prefix.isEmpty() ? prefix : prefix + ".") + key;
  			if (value instanceof Map) {
  				map.put(key, sanitize(qualifiedKey, (Map<String, Object>) value));
  			}
  			else if (value instanceof List) {
  				map.put(key, sanitize(qualifiedKey, (List<Object>) value));
  			}
  			else {
  				value = this.sanitizer.sanitize(key, value);
  				value = this.sanitizer.sanitize(qualifiedKey, value);
  				map.put(key, value);
  			}
  		});
  		return map;
  	}
docs: Sanitize all unwanted configuration properties to avoid leaking of sensitive
  information.
  @param prefix the property prefix
  @param map the source map
  @return the sanitized map