One more thing, I just fixed the example in documentation.
The problem is that the following line creates the $moveRequest
object
#set ($moveRequest = $services.refactoring.requestFactory.createMoveRequest($source, $destination))
While the following one tries to use the $renameRequest
object that doesn’t exist.
#set ($discard = $renameRequest.setUpdateLinks(false))
$services.refactoring.move($moveRequest)).join()