private void releaseLocks(){
try {
for (Iterator<NodeIdentifier> iterator = writelocks.iterator(); iterator.hasNext();) {
NodeIdentifier type = (NodeIdentifier) iterator.next();
try{
type.writeUnLock();
}catch (Exception ex){
// logger.log(Level.SEVERE, "Could not release write lock.", ex);
}
}
} catch (Exception ex) {
logger.log(Level.SEVERE, "Could not release write locks.", ex);
}
try {
for (Iterator<NodeIdentifier> iterator = readlocks.iterator(); iterator.hasNext();) {
NodeIdentifier type = (NodeIdentifier) iterator.next();
try{
type.readUnLock();
}catch (Exception ex){
// logger.log(Level.SEVERE, "Could not release read lock.", ex);
}
}
} catch (Exception ex) {