private static <T1, T2> void copyAndMapProp(final Supplier<T1> source,
                                                final Consumer<T2> dest,
                                                final Function<T1, T2> typeMapper) {
        final T1 sourceValue = source.get();
        if (sourceValue != null) {
            dest.accept(typeMapper.apply(sourceValue));
        }
    }
If the source supplier (i.e. getter) has a non-null value then set it
on the dest consumer (i.e. setter). Convert the type of the value in the
process.
stroom-db-util/src/main/java/stroom/db/util/HikariUtil.java