org.neo4j.graphdb.transaction.getNodeById alternative

So using the documentations HelloWorld exaample from Getting Started:
neo4j Community 5.4.0 jdk 17.0.1 on Windows 11 Pro, IntelliJ

getting org.neo4j.graphdb.transaction.getNodeById is deprecated and scheduled for removal.

What's a working alternative?

Looks like getNodeByElementId

Thank you where did you find that?

I start from here when working with the API. You will find the link to the Java doc in the blue box.

You can click on the drop down menu icon in the upper left to change the version.