public static String pojoClassToString(final PojoClass pojoClass,final Object instance){
  return String.format(POJOCLASS_TOSTRING_FORMAT,pojoClass.getName(),Integer.toHexString(System.identityHashCode(instance)),PojoFieldsToString(pojoClass.getPojoFields(),instance));
}

public static String pojoClassToString ( final PojoClass pojoClass , final Object instance ) { return String . format ( POJOCLASS_TOSTRING_FORMAT , pojoClass . getName ( ) , Integer . toHexString ( System . identityHashCode ( instance ) ) , PojoFieldsToString ( pojoClass . getPojoFields ( ) , instance ) ) ; }
this method takes an object instance for a pojoclass and flattens it into a properly formatted string .
