public <T> T adaptTo(Class<T> type) {
    return OBJECT_MAPPER.convertValue(model, type);
  }
public < T > T adaptTo ( Class < T > type ) { return OBJECT_MAPPER . convertValue ( model , type ) ; }
@param <T> return type
@param type a class that matches the structure of this resource's model
@return a new instance of the given class, populated with the properties of this resource's model