```scala
val propsToDelete = newConfProps.filterNot {case(k, v) => oldConfProps.containsKey(k)}
val propsToAdd = oldConf.getAllProperties.filterNot {case(k, v) =>
  newConfProps.containsKey(k) && ObjectUtils.equals(newConfProps.get(k), v)
}
```