code: @Override
      public byte[] toBytes(T instance)
              throws IllegalArgumentException
      {
          try {
              return mapper.writeValueAsBytes(instance);
          }
          catch (IOException e) {
              throw new IllegalArgumentException(format("%s could not be converted to SMILE", instance.getClass().getName()), e);
          }
      }
docs: Converts the specified instance to smile encoded bytes.
  
  @param instance the instance to convert to smile encoded bytes
  @return smile encoded bytes (UTF-8)
  @throws IllegalArgumentException if the specified instance can not be converted to smile