[Java]: Reduce complexity and footprint of publication term rolling.