String target = body.getParameter("target");
String statusCode = body.getParameter("statusCode");
String redirectionURI = body.getParameter("redirectionURI");
Resource redirectionResource = model.getResource(redirectionURI);
redirectionResource.removeAll(REDIRECTIONS.target);
redirectionResource.removeAll(REDIRECTIONS.statusCode);
Resource targetResource = model.getResource(target);
redirectionResource.addProperty(REDIRECTIONS.target, targetResource);
Literal statusLiteral = model.createTypedLiteral(Integer.parseInt(statusCode));
redirectionResource.addProperty(REDIRECTIONS.statusCode, statusLiteral);
new EnhancedResponse(response).sendRedirect(redirectionURI+"?mode=edit");