writeset.add(docId[0], new JAXBHandle<Product>(context).with(product1));
writeset.add(docId[1], new JAXBHandle<Product>(context).with(product2));
writeset.add(docId[2], new JAXBHandle<Product>(context).with(product3));
DocumentWriteSet writeset = docMgr.newWriteSet();
writeset.add(docId[0], new JAXBHandle<Product>(context).with(product1));
writeset.add(docId[1], new JAXBHandle<Product>(context).with(product2));
writeset.add(docId[2], new JAXBHandle<Product>(context).with(product3));