public static String serialize ( Object object ) { if ( object == null ) return "[null]" ; try { return new ScriptConverter ( ) . serialize ( object ) ; } catch ( Throwable t ) { ExceptionUtil . rethrowIfNecessary ( t ) ; return object . toString ( ) ; } }
translate a object to its string representation