public GridClientNode node(UUID id) throws GridClientException {
  assert id != null;
  lock.readLock().lock();
  try {
    if (lastError != null)     throw new GridClientDisconnectedException("Topology is failed [protocol=" + prot + ", routers="+ routerAddrs+ ']',lastError);
 else     return nodes.get(id);
  }
  finally {
    lock.readLock().unlock();
  }
}

public GridClientNode node ( UUID id ) throws GridClientException { assert id != null ; lock . readLock ( ) . lock ( ) ; try { if ( lastError != null ) throw new GridClientDisconnectedException ( "Topology is failed [protocol=" + prot + ", routers=" + routerAddrs + ']' , lastError ) ; else return nodes . get ( id ) ; } finally { lock . readLock ( ) . unlock ( ) ; } }
gets node from last saved topology snapshot by it ' s id .
