Creates and configures a Registry instance.
Creates and configures a Registry instance with Kotlin DSL syntax.