I think the Java thing about it is to create an external language to compensate for the deficiencies of the actual language in writing declarative code.<p>For most of the examples, you could probably easily write type-safe Scala code that does exactly the same, while still being flexible enough to handle the cases that the DSL doesn&#x27;t currently handle.