It is written in the defineXML method docs "A previous definition for this domain would be overriden if it already exists". Thus it is another way of using this function. Yes the method name a bit confusing (update feature is hidden inside) but there are no 'redefine' or 'update' methods