String directionName = null;
String assignedTo = null;
while (calls.hasNext()) {
Call instance = calls.next();
int id = instance.getId();
CallDirection direction = instance.getDirection();
directionName = CommonUtil.getOptionLabel(direction);
String subject = CommonUtil.fromNullToEmpty(instance.getSubject());
CallStatus status = instance.getStatus();
statusName = CommonUtil.getOptionLabel(status);
SimpleDateFormat dateFormat = new SimpleDateFormat(