From Java Builders to Kotlin DSLs

A step by step guide to wrapping an existing Builder-based API into a neat Kotlin DSL.