Why is this method needed? You are assuming that the properties are writeable.

I think you can re-architect so you don't need to change properties of an existing connection.