Call custom java function in generateScript() URCap

Take a look at the source code in this Github repo. It is a bit more involved than my first post implied. I remember following along with this, not fully understanding what was going on, but was still able to get it implemented for my CAP.