请大家分析一下这个HibernateUtil有什么问题?
package com.studorm.dao;
import
net.sf.hibernate.HibernateException;
import net.sf.hibernate.Session;
import net.sf.hibernate.Transaction;
import net.sf.hibernate.cfg.Configuration;
public class HibernateUtil {
private static String CONFIG_FILE_LOCATION = "/hibernate.cfg.xml ";
/**//** Holds a single instance of Session */
private static final ThreadLocal threadLocal = new ThreadLocal();
private static final ThreadLocal threadTransaction = new ThreadLocal();
/**//** The single instance of hibernate configuration */
private static final Configuration cfg = new Configuration();
/**//** The single instance of hibernate SessionFactory */
private static net.sf.hibernate.SessionFactory sessionFactory;
/**//**
* Returns the ThreadLocal Session instance. Lazy initialize the
* <code> SessionFactory </code> if needed.
*
* @return Session
* @throws
HibernateException */
public static Session getSession() throws HibernateException {
Session session = (Session) threadLocal.get();
if (session == null) {
if (sessionFactory == null) {
try {
cfg.configure(CONFIG_FILE_LOCATION);
sessionFactory = cfg.buildSessionFactory();
} catch (Exception e) {