importButton.setEnabled(false);
}
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
throw new TaskExecutionException(e);
}
status = Client.create(config).resource(HOSTURL + "/mediaimportmodules/" + selectedImporterButton.getSelectedItem().toString()).accept(MediaType.APPLICATION_JSON).get(MediaImportStatus.class);
}
if(status != null && status.getStatus()==MediaImportStatus.Status.Failed) {
if (status.getTotalNumber() > 0) {