Moved setxmlConfig from the patch