XPiNC is not really an option, because I need to use it in a very very large legacy application where it will take years to completely rebuild it in javascript / xpages.
Thanks for the tip, I think I'm going to copy the contents over to a Java libray... ;-)