if (channel.getNotificationTypes().contains(Type.PRIVATE) && !channel.isAuthorized(userId, prefs)) {
response.sendError(403);
} else if (channel.isConfigured(new Params(prefs.getParams()))) {
try {
String output = channel.pull(userId, prefs);
if (StringUtils.empty(output)) {
response.sendError(404);
} else {
response.getWriter().write(output);
}