void (Element element) { element.setAttribute(NAME_ATTRIBUTE_NAME,name); if (created > 0) { element.setAttribute(CREATED_ATTRIBUTE_NAME, String.valueOf(created)); } if (uuid != null && !uuid.equals(UUID.nameUUIDFromBytes(name.getBytes(StandardCharsets.UTF_8)).toString())) { element.setAttribute(UUID_ATTRIBUTE_NAME, uuid); } if (!StringUtil.isEmpty(description)) { element.setAttribute(DESCRIPTION_ATTRIBUTE_NAME, description); } if (!StringUtil.isEmpty(suppressId)) { element.setAttribute(SUPPRESS_ID_ATTRIBUTE_NAME, suppressId); } if (!StringUtil.isEmpty(problemDescriptor)) { element.setAttribute(PROBLEM_DESCRIPTOR_ATTRIBUTE_NAME, problemDescriptor); } if (cleanup) { element.setAttribute(CLEANUP_ATTRIBUTE_NAME, String.valueOf(cleanup)); } if (order != 0) { element.setAttribute(ORDER_ATTRIBUTE_NAME, String.valueOf(order)); } }