Encapsulating functionality to save recent connection and get most recent connection within
ConnectionBean.