Use StringUtils and remove whitespace.
Do not check keepalive if success = false.
Do not use the cached value.
Add static field.
Check network to avoid timeout issue.
Remove whitespace and tabs.
Do not use handler to check exception.
Display dialog to indicate attempt to reconnect.
Try to reconnect.
Handle CannotCreateSessionException
Return new connector after reconnecting.
Close session to be on the safe side before reconnecting.
Log exception when changing group during log in.
Remove call added during testing.
Move elapse time to configuration file.
Add network check value.
Remove System.err.println
Set connected to false by default.
Handle network failure.
Review init sequence of service.