* @param id
* @param lock
*/
public Persistent abstractFindById(Long id, boolean lock) throws HibernateException {
Session session = HibernateUtility.getSession();
Persistent object = null;
try {
if (lock) {
object = (Persistent) session.load(DAOClassType, id, LockMode.UPGRADE);
} else {
object = (Persistent) session.load(DAOClassType, id);