[NEXUS-7581] CMA HTTP Client factory

https://issues.sonatype.org/browse/NEXUS-7581
http://bamboo.s/browse/NX-OSSF367
This method has 3 very similar return statements, you could assign the request in the if-else-block and just have a single return at the end which would be easier to read.