Collection<ConnectionVO> result = new ArrayList<ConnectionVO>();
Date actTime = timeFormat.parse("00:00");
final Date endTime = timeFormat.parse("23:59");
do{
List<ConnectionVO> connections = getConnectionTime(session, start, destination, date, actTime);
ConnectionVO lastConnection = connections.get(connections.size()-1);
result.addAll(connections);
// increment one minute the actual time
actTime = DateUtils.addMinutes(lastConnection.getStartTime(), 1);
}while(actTime.before(endTime));
// filter connections that are not from today
Iterable<ConnectionVO> filteredResult = Iterables.filter(result, new Predicate<ConnectionVO>() {
@Override
public boolean apply(ConnectionVO connection) {