I have an issue with getting an deprecation warning for the Java API: warning: [deprecation] createNode() in Node has been deprecated Node.createNode() In the manual the suggestion is to use getFactory().createNode() instead, however, the Node object does not have a getFactory function. Can you please help?

The getFactory method is inherited from com.scitegic.pilot.PilotCreatable, which is why it doesn't appear in the list of methods for Node. What Pipeline Pilot version are you using? I was able to do something like the following in Pipeline Pilot 2020:
Node node = data.getRoot();Node subnode = node.getFactory().createNode();
node.appendChild(subnode);
Also, are you using the Dynamic Java (on Server) component or the regular Java (on Server) component? I tried the above in the dynamic component.
Hi Andrei,
Thank you for the answer, I am using Pipeline Pilot 2020 and regular Java on Server, actually it is within a package, so I compile it with netbeans.
Hi Peter. I created a simple test class in Eclipse that included the code snippet shown above and I was able to build it and then execute it from Pipeline Pilot without any issues. Eclipse autocompleted getFactory on the node object, so I'm not sure why netbeans wouldn't show that method for you. I'm not sure what else to suggest. Would you be able to share some simplified code with me so I can test it here and see if I can reproduce what you're seeing?
Thanks for both replies. Unfortunately, I cannot really share the code, but the small snippet you've given solved the issue. So thank you very much! Maybe this example could be added to the documentation.
I will put in a request to add to the documentation. In the meantime, I realised that the code isn't complete without a:
subnode.relinquish();
once the node has been appended to the parent to avoid excessive memory consumption (this is mentioned in the documentation).