private void acquireWriteLocks( List<NodeIdentifier> missing, List<NodeIdentifier> found )
throws Exception {
for( Iterator<NodeIdentifier> iterator = missing.iterator(); iterator.hasNext(); ) {
NodeIdentifier nodeid = (NodeIdentifier) iterator.next();
try {
nodeid.writeLock();
}catch (Exception ex){
//error occurred; remove from list
iterator.remove();
logger.log(Level.SEVERE, "Could not acquire necessary write locks.", ex);
continue;