private String toString(String prefix) {
StringBuffer sb = new StringBuffer(128);
try {
BeanDescriptor bd = Introspector.INSTANCE.getDescriptor(bean);
Property[] properties = bd.getProperties();
if (properties != null) {
//System.out.println(properties.length);
for (int i = 0; i < properties.length; i++) {
String pName = properties[i].getName();
//System.out.println(pName);
Property p = bd.getProperty(pName);
Method m = p.getAccessorMethod();
if (m != null) { // ensure it has a getter method
Object value = m.invoke(bean, null);