Code for using java with nodejs