I have tried this but somehow it's not taking/reflecting the changes in the browser
MediaType mediaType = new MediaType("applicaiton", "msword");
List<MediaType> acceptableMediaTypes = new ArrayList<MediaType>();
acceptableMediaTypes.add(mediaType);
HttpHeaders headers = new HttpHeaders();
headers.setAccept(acceptableMediaTypes);