database2 = new ODatabaseDocumentTx(url).open("admin", "admin");
// Create docA.
ODocument vDocA_db1 = database1.newInstance();
vDocA_db1.field(NAME, "docA");
vDocA_db1.unpin();
vDocA_db1.save();
// Keep the IDs.
ORID vDocA_Rid = vDocA_db1.getIdentity().copy();