String issueKey = null;
if (null != issueKeys && !"".equals(issueKeys.get(0))) {
issueKey = issueKeys.get(0);
try {
issueTrackerClient.uploadAttachments(token, issueKey, attachmentDataArray, credentials.getUrl());
} catch (Exception e) {
log.error("File upload failed.Attached file seems to be corrupted.Please recheck. " + e.getMessage());
CarbonUIMessage.sendCarbonUIMessage("File upload failed.Attached file seems to be corrupted.Please recheck."
+ e.getMessage(), CarbonUIMessage.ERROR, request,