UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
if (user != null) {
UserManager serv = new UserManager();
serv.removeUserSubscription(user.getEmail(), id);
resp.getWriter().write("OK");
} else {
throw new Exception("no user");
}