generatedKeys = saveMonitorStmt.getGeneratedKeys();
if (generatedKeys.next()) {
return generatedKeys.getInt(1);
}
} catch (SQLException sqlEx) {
<BUG>plugin.getLogger().log(Level.SEVERE, "Error saving tps to database", sqlEx);
</BUG>
} finally {
closeQuietly(generatedKeys);
closeQuietly(saveMonitorStmt);

generatedKeys = saveMonitorStmt.getGeneratedKeys();
if (generatedKeys.next()) {
return generatedKeys.getInt(1);
}
} catch (SQLException sqlEx) {
plugin.getLogger().log(Level.SEVERE, "Error saving monitor data to database", sqlEx);
} finally {
closeQuietly(generatedKeys);
closeQuietly(saveMonitorStmt);
