Use the API described here for both user-defined nodes, and for Java™ code that is called by JavaCompute nodes.