if (objects[i] instanceof Transactionable) {
Transactionable t = (Transactionable) objects[i];
if (t.isCheckedOutByUser()) {
if (t.isLocked()) {
t.unlock();
}
t.checkin();