UploadedFile item = event.getUploadedFile();
ManagementController controller = (ManagementController) PortalContainer.getComponent(ManagementController.class);
Map<String, List<String>> attributes = new HashMap<String, List<String>>(1);
attributes.put("importMode", Collections.singletonList(importMode));
ManagedRequest request = ManagedRequest.Factory.create(OperationNames.IMPORT_RESOURCE,
PathAddress.pathAddress("mop"), attributes, item.getInputStream(), ContentType.ZIP);
try {
ManagedResponse response = controller.execute(request);
if (!response.getOutcome().isSuccess()) {
addMessage(item.getName());