* @throws UnsupportedEncodingException if the request parameters encoding is invalid.
*/
private static ProfileRequest parseProfileRequest(HttpServletRequest req,
HttpServletResponse response) throws UnsupportedEncodingException {
String[] addresses = URLDecoder.decode(req.getParameter("addresses"), "UTF-8").split(",");
ProfileRequest profileRequest =
ProfileRequest.newBuilder().addAllAddresses(Lists.newArrayList(addresses)).build();
return profileRequest;
}