Behaviour of the energy gap in a model of Josephson coupled Bose–Einstein condensates