Create or resume connection. 
00094                               {
00095                 BaseConnection bc = getConnection();
00096                 if (bc != null && !isAvailable()) {
00097                         logger.debug("current connection not available.");
00098                         closeConnection();
00099                 }
00100                 if (getConnection() == null) {
00101                         logger.debug("creating new connection.");
00102                         this.connection = new BaseConnectionImpl(this);
00103                 }
00104         }