try
{
ObjectManager om = ownerSM.getObjectManager();
ManagedConnection mconn = storeMgr.getConnection(om);
SQLController sqlControl = storeMgr.getSQLController();
sqlControl.processStatementsForConnection(mconn); // Process all waiting batched statements before we start our work
try
{
// Loop through all elements to be added
Object element = null;