[Java] Remove indirection to activeTermId from within Publication.