doAuthorizedAction(request, response, new A() {
public void a() throws Exception {
response.setContentType("text/html");
FormData uploadItem = FileManagerUtils.getFormData(request);
String packageImport = request.getParameter("packageImport");
if ("true".equals(packageImport)) {
boolean importAsNew = "true".equals(request
.getParameter("importAsNew"));
response.getWriter().write(
processImportPackage(uploadItem.getFile().getInputStream(),
importAsNew));
} else {
response.getWriter().write(
processImportRepository(uploadItem.getFile()
.getInputStream()));
}
}
});
}