components/src/test/java/eu/internetofus/common/components/GetSetContext.java
/**
   * Return the buffer associated to a value.
   *
   * @param value to return the buffer.
   *
   * @return the buffer that contains the value.
   */
Return the buffer associated to a value.
@param value to return the buffer.

@return the buffer that contains the value.
Return the buffer associated to a value . @param value to return the buffer . @return the buffer that contains the value .
protected Buffer toBuffer(final ClusterSerializable value) {
    if (value instanceof JsonObject) {
      return ((JsonObject) value).toBuffer();
    } else {
      return ((JsonArray) value).toBuffer();
    }
  }
protected Buffer toBuffer ( final ClusterSerializable value ) { if ( value instanceof JsonObject ) { return ( ( JsonObject ) value ) . toBuffer ( ) ; } else { return ( ( JsonArray ) value ) . toBuffer ( ) ; } }
Return the buffer associated to a value.
Return the buffer associated to a value .