List<JiraIssue> (String response) { JiraResponseWrapper.Issues<JiraIssueApi20Alpha1> wrapper = JiraRepository.GSON.fromJson(response, ISSUES_WRAPPER_TYPE); List<JiraIssueApi20Alpha1> incompleteIssues = wrapper.getIssues(); List<JiraIssue> updatedIssues = new ArrayList<>(); for (JiraIssueApi20Alpha1 issue : incompleteIssues) { try { JiraRestTask task = findTask(issue.getKey()); if (task != null) { updatedIssues.add(task.getJiraIssue()); } } catch (Exception e) { LOG.warn("Can't fetch detailed info about issue: " + issue.getKey()); } } return updatedIssues; }