Would it make sense to throw IllegalArgumentException if conf is containerConfiguration? Otherwise we return containerConfiguration which behaves like the config is indeed removed.