modifyObjectProperty

Hi, The docs at https://docs.katalon.com/display/KD/[WebUI]+Modify+Object+Property
still say eg:

new_btn = WebUI.modifyObjectProperty(findTestObject('Page_Login/btn_Login'), 'xpath', 'equals', '//*[@type=\"button\"]', false)

however it seems this first finds the object without modifying the xpath, and the comment above says "calling the modified object should not contain findTestObject " - so what would be the correct code?

--------------------
on further testing, I got a working code like:

TestObject dynamicObject = new TestObject('dynamicObject').addProperty('xpath', com.kms.katalon.core.testobject.ConditionType.EQUALS, newXPath, true)
WebUI.waitForElementVisible(dynamicObject, 3)

creating a new object rather than getting a TestObject from the repository and modifying it.

I didn’t find this type of usage in the documentation, just guesswork and hints on the forums, so it would be good to have some clarification about which is the recommended syntax.