Hi, Tony. Thanks for pointing out that error. This line in the code example:
NodeType nodeTypes =
should instead be:
NodeTypeDefinition nodeTypes =
NodeTypeDefinition is the supertype of both NodeTypeTemplate (the editable template created by the manager to allow your code to define new types) and NodeType (the read-only representation for registered types). That matches the signature of the "registerNodeTypes(NodeTypeTemplate,boolean)" method on the following line, too. Sorry about the error. I've corrected the documentation page, too.
Please let us know if you find any other errors!