private String toDate = "";
public void parseForCalls(InputStream ip, Set<String> queues) {
//check the date range for validity and change
LogParser<LogMapper<CallMetric>> queueLogParser = new LogParser<LogMapper<CallMetric>>();
CallMapper mapperc = new CallMapper(queues);
queueLogParser.setLogMapper(mapperc);
BufferedReader in;
CsvReader reader;
InputStreamReader ins = new InputStreamReader(ip);
in = new BufferedReader(ins);
reader = new CsvReader(in, '|');
try {
try {
queueLogParser.parse(cfromDate, ctoDate, reader);
this.callMap = mapperc.getMap();
setQueueSummary(new QueueSummary());
getQueueSummary().makeSummary(queues, callMap);
setWeeks(new WeekDistribution());
getWeeks().init(cfromDate, ctoDate);
getWeeks().setQueueNames(queues);