Ok first of all, welcome in our community.
I really recommend to look at this link below:
http://www.jython.org/Project/
You can find the answer in here.
But just want you know that a Python program is shorter from 2 to 10
times than a Java one.
Python is very specific and powerful, and its code can be read easily.
I hope that you migrate to Python, if you want to be more productive
in a shorter time.