Serialize annotations in xeditor