added Java mapping code