protected ResponseContext getCanonicalRedirect(Agent agent) { String location = getId(agent); ResponseContext response = new EmptyResponseContext(303, "Agent found with email address"); response.setLocation(location); return response; }