q = pm.newQuery(Department.class);
c = (Collection) q.execute();
deps.addAll(c);
q.closeAll();
logger.log(BasicLevel.INFO, "Delete " + deps.size() + " departments.");
pm.deletePersistentAll(deps);
logger.log(BasicLevel.INFO, "Delete " + emps.size() + " employees.");
pm.deletePersistentAll(emps);
pm.currentTransaction().commit();
pm.close();
return this;