// Write the node, which allocates an id for it.
NodeId id = writeNodeToTable(node) ;
// Update the r record with the new id.
// r.value := id bytes ;
id.toBytes(r.getValue(), 0) ;
// Put in index - may appear because of concurrency
if ( ! nodeHashToId.add(r) )
throw new TDBException("NodeTableBase::nodeToId - record mysteriously appeared") ;
return id ;