Code example for HibernateException

0
		} 
		catch (ClassNotFoundException ex) {
			throw new HibernateException("Couldn't clone BLOB contents", ex);
		} 
		catch (IOException ex) {
			throw new HibernateException("Couldn't clone BLOB contents", ex);
		} 
	} 
 
	@Override 
	protected Object nullSafeGetInternal( 
			ResultSet rs, String[] names, Object owner, LobHandler lobHandler)
			throws SQLException, IOException, HibernateException {
 
		InputStream is = lobHandler.getBlobAsBinaryStream(rs, names[0]);
		if (is != null) {
			ObjectInputStream ois = new ObjectInputStream(is);
			try { 
				return ois.readObject();
			}