Inference of a structured data model in migrating a legacy system to Java