//Prepare and commit the current Transaction.
prepareAndCommit();
// Create the Cursor. The DataProvider is dp.
CursorManagerSpecification cursorMngrSpec =
dp.createCursorManagerSpecification(querySource2);
CursorManager cursorManager =
dp.createCursorManager(cursorMngrSpec);
Cursor queryCursor2 = cursorManager.createCursor();