contrib/java_parser: Map and cast support

Signed-off-by: Frédéric Vachon <fredvac@gmail.com>