public void checkEmpty(final Table<?> table) {
        if (count(table) > 0) {
            throw new RuntimeException("Unexpected data");
        }
    }
Fetch a single row using the passed id value. If the id matches zero rows or more than one row then
an exception will be thrown. Assumes the table's id field is named 'id'.

@param type The type of record to return
@param id   The id to match on
@return An optional containing the record if it was found.
stroom-db-util/src/main/java/stroom/db/util/JooqHelper.java