}
actsInRoleStmts.close();
}
model.add(importing);
EnhancedResponse ehResponse = new EnhancedResponse(response);
if (body.getParameter("action_aggregate") != null) {
model.leaveCriticalSection();
try {
Download.download(model, body.getParameter("aggregate"),
new URL(ehRequest.getRequestURLWithoutParams(), "/"));
} catch (MalformedURLException e) {
throw new RuntimeException(e);
} finally {
model.enterCriticalSection(ModelLock.WRITE);
}
ehResponse.sendRedirect(agentProfileDocument.getURI()
+ "?mode=edit");
} else {
if (body.getParameter("action_go") != null) {
ehResponse.sendRedirect(body.getParameter("go"));
} else {
ehResponse.sendRedirect(agentProfileDocument.getURI());
}
}
}