Element () { Element element = new Element("list"); element.setAttribute(DISPLAY_NAME_TAG, getName()); if (myDescription != null) { element.setAttribute(DESCRIPTION_TAG, myDescription); } for (String actionId : getActionIds()) { element.addContent(new Element(ACTION_TAG).setAttribute(ID_TAG, actionId)); } schemeState = SchemeState.UNCHANGED; return element; }