if (idleMinutes > idleMinutesToDisconnect) {
if (connectionHandler.hasUncommittedChanges()) {
connectionHandler.getConnectionStatus().setResolvingIdleStatus(true);
new SimpleLaterInvocator() {
public void execute() {
IdleConnectionDialog idleConnectionDialog = new IdleConnectionDialog(connectionHandler);
idleConnectionDialog.show();
}
}.start();
} else {
transactionManager.execute(connectionHandler, false, TransactionAction.DISCONNECT_IDLE);
}