public void toXmlElement(Element root) {
   Element rt = root.addElement("relationType");
   rt.addElement("id").addText(String.valueOf(getId()));
   rt.addElement("name").addText(LocalMessage.loc(getName()));
   rt.addElement("sysName").addText(getName());
   rt.addElement("description").addText(LocalMessage.loc(getDescription()));
   rt.addElement("rightobjectprotected").addText(rightobjectprotected.toString());
   rt.addElement("leftobjectprotected").addText(leftobjectprotected.toString());
   rt.addElement("cloneOnLeftCopy").addText(cloneOnLeftCopy.toString());
   rt.addElement("cloneOnLeftVersion").addText(cloneOnLeftVersion.toString());
   rt.addElement("cloneOnRightCopy").addText(cloneOnRightCopy.toString());
   rt.addElement("cloneOnRightVersion").addText(cloneOnRightVersion.toString());
   rt.addElement("leftResolver").addText(leftResolver.getName());
   rt.addElement("rightResolver").addText(rightResolver.getName());
 }