EOEditingContext ec = ERXEC.newEditingContext();
ec.lock();
try {
for (Enumeration e = bugsInBuild.objectEnumerator(); e.hasMoreElements();) {
Bug currentBug = (Bug) e.nextElement();
currentBug.moveToVerification();
}
ec.saveChanges();
} finally {
ec.unlock();
}