public static <R extends UpdatableRecord<R>> int tryCreate(final DataSource dataSource,
                                                               final R record) {
        return contextResult(dataSource, context ->
                tryCreate(context, record));
    }
Tries to insert record into the database. If it doesn't already exist it will insert the
record and return 1. If it already exists then the unique key violation will be swallowed
and will return 0;
<p>
If you need the persisted version of the record from the database then use
{@link JooqUtil#tryCreate(DataSource, UpdatableRecord, TableField, TableField, TableField, Consumer)}
instead.
</p>
stroom-db-util/src/main/java/stroom/db/util/JooqUtil.java