String id2, Document document2) throws Exception {
TransactionService transaction =
(TransactionService) col.getService("TransactionService", "1.0");
transaction.begin();
XMLResource resource1 =
(XMLResource) col.createResource(id1, XMLResource.RESOURCE_TYPE);
resource1.setContentAsDOM(document1);