model/src/main/java/eu/internetofus/common/model/Model.java
/**
   * Obtain the model associated to a {@link Buffer}.
   *
   * @param buffer to obtain the model.
   * @param type   of model to obtain
   * @param <T>    to obtain
   *
   * @return the model defined on the buffer or {@code null} if can not obtain it.
   */
Obtain the model associated to a  Buffer.
@param buffer to obtain the model.
@param type   of model to obtain
@param     to obtain

@return the model defined on the buffer or  null if can not obtain it.
Obtain the model associated to a Buffer . @param buffer to obtain the model . @param type of model to obtain @param to obtain @return the model defined on the buffer or null if can not obtain it .
public static <T extends Model> T fromBuffer(final Buffer buffer, final Class<T> type) {
    try {
      return Json.decodeValue(buffer, type);
    } catch (final Throwable throwable) {
      Logger.trace(throwable);
      return null;
    }
  }
public static < T extends Model > T fromBuffer ( final Buffer buffer , final Class < T > type ) { try { return Json . decodeValue ( buffer , type ) ; } catch ( final Throwable throwable ) { Logger . trace ( throwable ) ; return null ; } }
Obtain the model associated to a {@link Buffer}.
Obtain the model associated to a { @link Buffer } .