protected void closeDatabase(Database database) {
        try {
            if(database != null) {
                database.close();
            }
        } catch (DatabaseException e) {
            log("Error closing the database connection.", e, Project.MSG_WARN);
        }
    }
protected void closeDatabase(Database database) {
        try {
            if(database != null) {
                database.close();
            }
        } catch (DatabaseException e) {
            log("Error closing the database connection.", e, Project.MSG_WARN);
        }
    }
protected void closeDatabase ( Database database ) { try { if ( database != null ) { database . close ( ) ; } } catch ( DatabaseException e ) { log ( "Error closing the database connection." , e , Project . MSG_WARN ) ; } }
Convenience method to safely close the database connection.

@param database The database to close.
Convenience method to safely close the database connection .