private static String msg(Object obj, Collection pds) {
private static String msg(Object obj, Collection pds, String msg) {
    private static String msg(Object obj, Collection pds) {        StringBuffer sb = new StringBuffer();        if (obj == null) {            sb.append("Unable to send all events to database");        } else {            sb.append("Unable to send all events to database for object ");            sb.append(obj);        }        sb.append(" because these required properties are null:");        for (Iterator it = pds.iterator(); it.hasNext(); ) {            PropertyData pd = (PropertyData) it.next();            sb.append("\n ");            sb.append(pd.getObjectData().getObject() + "."                      + pd.getProperty().getName());        }        return sb.toString();    }