{
DListEntry_2 entry = prepareEntry(element);
elements.add(index, entry);
this.size++;
// if we are in a transaction: acquire locks !
TransactionImpl tx = TxManagerFactory.instance().getTransaction();
if (checkForOpenTransaction(tx))
{
tx.lock(this, Transaction.WRITE);
tx.lock(entry, Transaction.WRITE);
tx.lock(element, Transaction.READ);
entry.prepareForPersistency(tx.getBroker());
}
// changing the position markers of entries:
int offset = 0;
try