[lang] Replace the deprecated calls in the JVM model inferrer.

see #176

Signed-off-by: Stéphane Galland <galland@arakhne.org>