String id = ids[i];
CaseInstance caseInstance = baseService.getEntityById(
CaseInstance.class, Integer.parseInt(id));
final HashMap<String, ? super Object> data1 = new HashMap<String, Object>();
data1.put(header[0], caseInstance.getId());
CasePriority casePriority = caseInstance.getPriority();
if (casePriority != null) {
data1.put(header[1], casePriority.getId());
} else {
data1.put(header[1], "");
}
data1.put(header[2],
CommonUtil.getOptionLabel(casePriority));