protected void closeResources(Connection connection,Statement statement){
  if (cacheStatements)   return;
  if (statement != null) {
    try {
      statement.close();
    }
 catch (    SQLException e) {
      LOG.finest("Caught exception closing statement: " + e.getMessage() + " - continuing");
    }
  }
  closeResources(connection);
}

protected void closeResources ( Connection connection , Statement statement ) { if ( cacheStatements ) return ; if ( statement != null ) { try { statement . close ( ) ; } catch ( SQLException e ) { LOG . finest ( "Caught exception closing statement: " + e . getMessage ( ) + " - continuing" ) ; } } closeResources ( connection ) ; }
an extension point allowing the behavior of resource closing to be overridden in derived classes .
