code: private String dataToString( Object data ) {
          if ( data == null ) return "<null>";
          return ( data instanceof Scriptable ) ? ScriptableUtils.toString((Scriptable) data)
                                                : Objects.toString(data);
      }
docs: Take the data field and give it some sensible string representation.
  @param data
  @return String representation of {@code data}.