log.error("response list is empty");
System.err.println("response list is empty");
    double getAverage(RspList rsps) {        Rsp    rsp;        double retval=0;        int    num=0;        if(rsps == null || rsps.size() == 0) {            log.error("response list is empty");            return 0.0;        }        for(int i=0; i < rsps.size(); i++) {            rsp=(Rsp)rsps.elementAt(i);            if(rsp.getValue() != null && rsp.getValue() instanceof Long) {                retval+=((Long)rsp.getValue()).longValue();                num++;            }            else {                log.error("response " + rsp.getValue() + " invalid");            }        }        return retval / num;    }