if (user == null) {
response.setStatus(HttpServletResponse.SC_FORBIDDEN);
return;
}
ProfileRequest profileRequest = parseProfileRequest(req, response);
ProfileResponse profileResponse = fetchProfiles(profileRequest, user);
printJson(profileResponse, response);
}