"xwiki" shouldn't be hard-coded and XClass references are local anyway (you cannot add an object of a type defined in a different wiki).