Code example for HibernateException

0
			ObjectInputStream ois = new ObjectInputStream(is);
			try { 
				return ois.readObject();
			} 
			catch (ClassNotFoundException ex) {
				throw new HibernateException("Could not deserialize BLOB contents", ex);
			} 
			finally { 
				ois.close();
			} 
		} 
		else { 
			return null; 
		} 
	} 
 
	@Override 
	protected void nullSafeSetInternal( 
			PreparedStatement ps, int index, Object value, LobCreator lobCreator)
			throws SQLException, IOException {