private void addResult(BlockLocation location, double cumulativeP,
String debug, double minProbabilityForConsideration,
List<CurrentVehicleEstimateBean> beans) {
if (cumulativeP >= minProbabilityForConsideration) {
CurrentVehicleEstimateBean bean = new CurrentVehicleEstimateBean();
bean.setProbability(cumulativeP);
TripStatusBean status = _tripStatusBeanService.getBlockLocationAsStatusBean(
location, location.getTime());
bean.setTripStatus(status);
bean.setDebug(debug);
beans.add(bean);
}
}