MULE-7669 Introduce a system property to disable http stale connection c...

...heck
Extract a method for these two lines