Hi Advit,
Why are you planning for Java mapping . Do it using simple Graphical mapping with addition of simple UDF. That will make your process easy and you can easily call you value mapping as well as per your requirement.
Follow this great document -
Thanks,
Apu