// The default install includes a test database with an ocs collection
Collection col = app.getCollection("root/ocs");
// CORBA requires the document to be an EncodedBuffer
EncodedBuffer buf = new EncodedBuffer(-1, EmptyBytes, document.getBytes());
String key = col.insertDocument("testdoc", buf);
System.out.println("Document Key: " + key);
col.remove();
return key;