question: private void addNode ( Node node ) throws SyncException { Short nodeId = node . getNodeId ( ) ; if ( allNodes . get ( nodeId ) != null ) { throw new SyncException ( "Error adding node " + node + ": a node with that ID already exists" ) ; } allNodes . put ( nodeId , node ) ; Short domainId = node . getDomainId ( ) ; List < Node > localDomain = localDomains . get ( domainId ) ; if ( localDomain == null ) { localDomains . put ( domainId , localDomain = new ArrayList < Node > ( ) ) ; } localDomain . add ( node ) ; }
target:  Add a new node to the cluster