private void write(MarshalledEntry entry, Connection connection, String keyStr, int segment) throws SQLException, InterruptedException { if (tableManager.isUpsertSupported()) { executeUpsert(connection, entry, keyStr, segment); } else { executeLegacyUpdate(connection, entry, keyStr, segment); } }