protected Element makeElement(String tag, CalendarEntry value) { Element root = new Element(tag); if (value != null) { root.setAttribute("no", value.getNo()); root.addContent(makeShortElement("bill", value.getBill())); root.addContent(makeShortElement("subBill", value.getBill())); root.addContent(makeElement("billHigh", value.getBillHigh())); } return root; }