Should use a ```getUiXml()``` method.