Fix xmi-write to work with new UML metamodel implementation

Change-Id: Ic46debecfdd68f1c38b22cee54c663c22db13cd6
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>