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());
log.error(response.getOutcome().getFailureDescription());
}
} catch (Exception e) {