@Resource
	public void setSessionFactory(SessionFactory sessionFactory) {
		if (null == hibernateTemplate)
			hibernateTemplate = new HibernateTemplate(sessionFactory);
		
		if(null == session)
			session = sessionFactory.openSession();
	}