}
public void save() throws OKMException {
try {
XMLOutputFactory outputFactory = XMLOutputFactory.newInstance();
FileOutputStream stream = new FileOutputStream(documentFilename);
XMLStreamWriter writer;
writer = outputFactory.createXMLStreamWriter(stream,"UTF-8");
writer.writeStartDocument("utf-8", "1.0"); // Header
writer.writeStartElement("openkm"); // openkm node
for (Iterator<OKMDocumentBean> it = docList.iterator(); it.hasNext();) {
OKMDocumentBean doc = it.next();