public String toString() {
try {
Map map = BeanUtils.describe(this);
Iterator keyIt = map.keySet().iterator();
StringBuffer aBuffer = new StringBuffer();
while (keyIt.hasNext()) {
String key = (String) keyIt.next();
if ("class".equals(key)) {
continue;
}
String value = (String) map.get(key);
if (aBuffer.length() > 0) {
aBuffer.append(", ");
}
aBuffer.append(key + " = [" + value + "]");
}
return aBuffer.toString();
} catch (Exception e) {
return super.toString();
}
}