Hello @needknimehelp,
check this topic:
There’s some Java code and links to additional resources.
Br, Ivan