public void doFilter(ServletRequest sRq, ServletResponse sRp,
			FilterChain chain) throws IOException, ServletException {
		try {
			sF.getCurrentSession().beginTransaction();
			chain.doFilter(sRq, sRp);
			sF.getCurrentSession().getTransaction().commit();
			sF.getCurrentSession().close();

		} catch (Throwable e) {
			try {
				if (sF.getCurrentSession().getTransaction().isActive()) {
					sF.getCurrentSession().getTransaction().rollback();
				}

			} catch (Throwable ex) {
				ex.printStackTrace();
			}
			throw new ServletException(e);
		}

	}