private Connection createConnection(Throwing.Consumer<Builder> config) {
        try {
            Builder builder = new Builder();
            config.accept(builder);
            return Nats.connect(builder.build());
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
An implementation of Messenger for Nats messaging client.
common/src/main/java/me/lucko/luckperms/common/messaging/nats/NatsMessenger.java