Java API: basic POJO generation

We still need Gradle plugin integration.