I\'m trying to copy all existing headers from request to Spring HttpHeaders object for using in RestTemplate. can be done easily in a loop on enumeration, but getting this error