NH-3654 Renamed _gbag to InternalBag and changed it to protected to provide previous level of access