In most cases, foaming and gas pockets are due to not pushing enough pressure.
Keg systems are a balance of temperature and resistance. Oh, sure there are other factors that come into play when commercial needs are present, but for the home, they are pretty irrellevant. The only keg to keg...