WWW-2869 - added in a configurable timeout for rest request.