这两个函数用来复制map:
class ImmutablePropertyBag(map: Map<String, Any>) { private val mapCopy = map.toMap() }