public void touchAndSave() {
if (logger.isLoggable(Level.FINE)) {
logger.fine("IN " + this.getClass().getName() +
">>touchAndSave: " + this);
}
ReplicationUnitOfWork unitOfWork
= ReplicationUnitOfWork.getThreadLocalUnitOfWork();
if(unitOfWork == null) {
unitOfWork = new ReplicationUnitOfWork();
}
unitOfWork.lockApplicationSession(this);
try {
this.setPFieldExpirationTime(this.getPFieldExpirationTime());
} finally {
// Save modified entities, and unlock the dialog
unitOfWork.saveAndUnlock();
}
}