// Prepare and commit the current Transaction.
prepareAndCommit();
// Create a Cursor for unitsForSelections.
CursorManagerSpecification cursorMngrSpec =
dp.createCursorManagerSpecification(unitsForSelections);
// Get the root CursorSpecification of the CursorManagerSpecification.
CompoundCursorSpecification rootCursorSpec =
(CompoundCursorSpecification) cursorMngrSpec.getRootCursorSpecification();
// Get the CursorSpecification objects for the outputs.
List outputSpecs = rootCursorSpec.getOutputs();
ValueCursorSpecification timeSelValCSpec =
(ValueCursorSpecification) outputSpecs.get(1); // Output for time.