HttpServletResponse response) throws IOException, ServletException {
ActionForward forward = mapping.findForward("planetSubscriptions.page");
try {
//RollerRequest rreq = RollerRequest.getRollerRequest(request);
if (RollerSession.getRollerSession(request).isGlobalAdminUser()) {
Roller roller = RollerFactory.getRoller();
PlanetManager planet = roller.getPlanetManager();
PlanetSubscriptionFormEx form = (PlanetSubscriptionFormEx)actionForm;
if (form.getId() != null) {
PlanetSubscriptionData sub =
planet.getSubscriptionById(form.getId());
String groupHandle = request.getParameter("groupHandle");
groupHandle = (groupHandle == null) ? form.getGroupHandle() : groupHandle;
groupHandle = (groupHandle == null) ? "external" : groupHandle;
PlanetGroupData targetGroup = planet.getGroup(groupHandle);
targetGroup.getSubscriptions().remove(sub);
planet.deleteSubscription(sub);
roller.flush();
// TODO: why release here?
roller.release();
form.doReset(mapping, request);
form.setGroupHandle(groupHandle);
request.setAttribute("model",