@marcick So would I..... This was a solution offered to me 5+ years ago by another user. I keep a record of such snippets for future use.
Clearly some knowledge of Java is required as well as the objects available within the library. I did suggest someone write a primer for manipulating Java Objects ages ago but nobody has yet risen to the challenge.