throw new Error("Couldn't update database in the clean thread");
e.printStackTrace(); System.out.println("Couldn't update database in the clean thread");
	private void updateServerRecord() {	    int currentTxNumber = Transaction.getCommitted();	    PersistenceBroker broker = null;	    	    try {		broker = PersistenceBrokerFactory.defaultPersistenceBroker();		broker.beginTransaction();				Connection conn = broker.serviceConnectionManager().getConnection();		Statement stmt = conn.createStatement();		// update record for this server		stmt.executeUpdate("UPDATE LAST_TX_PROCESSED SET LAST_TX=" 				   + currentTxNumber 				   + ",LAST_UPDATE=NULL WHERE SERVER = '" 				   + server + "'");				// delete obsolete values		ResultSet rs = stmt.executeQuery("SELECT MIN(LAST_TX) FROM LAST_TX_PROCESSED WHERE LAST_UPDATE > NOW() - " 						 + (2 * SECONDS_BETWEEN_UPDATES));		int min = (rs.next() ? rs.getInt(1) : 0);		if (min > 0) {		    stmt.executeUpdate("DELETE FROM TX_CHANGE_LOGS WHERE TX_NUMBER < " + min);		}		broker.commitTransaction();		this.lastTxNumber = currentTxNumber;	    } catch (Exception e) {		throw new Error("Couldn't update database in the clean thread");	    } finally {		if (broker != null) {		    broker.close();		}	    }	}