question: public void replaceNode ( final Node node ) { List < Way > ways = currentStorage . getWays ( node ) ; if ( ways . size ( ) > 0 ) { Node newNode = factory . createNodeWithNewId ( node . lat , node . lon ) ; insertElementUnsafe ( newNode ) ; dirty = true ; for ( Way way : ways ) { replaceNodeInWay ( node , newNode , way ) ; } } }
target:  Replace the given node in any ways it is member of.