code: private Map<String, Object> flatten(Map<String, Object> map) {
  		Map<String, Object> result = new LinkedHashMap<>();
  		flatten(null, result, map);
  		return result;
  	}
docs: Flatten the map keys using period separator.
  @param map the map that should be flattened
  @return the flattened map