private List<Issue> fetchIssues(Key project, List<Integer> projectIds,
int filter, String url, String username, String password) {
try {
List<Issue> issues = new ArrayList<Issue>();
IMCSession session = new MCSession(new URL(url), username, password);
for (int curProject : projectIds) {
for (IIssueHeader curIssue : session.getIssueHeaders(
curProject, filter, 10)) {
if (IssueStatus.get(curIssue.getStatus()) == IssueStatus.NEW)
issues.add(new Issue(project, curIssue));
}
}