Transactor tx = (Transactor) Thread.currentThread ();
    public String generateID (DbMapping map) throws Exception {	Transactor tx = (Transactor) Thread.currentThread ();	// tx.timer.beginEvent ("generateID "+map);	QueryDataSet qds = null;	String retval = null;	try {	    Connection con = map.getConnection ();	    String q = "SELECT "+map.getIDgen()+".nextval FROM dual";	    qds = new QueryDataSet (con, q);	    qds.fetchRecords ();	    retval = qds.getRecord (0).getValue (1).asString ();	} finally {	    // tx.timer.endEvent ("generateID "+map);	    if (qds != null) try {	        qds.close ();	    } catch (Exception ignore) {}	}	return retval;    }