public NdefRecord encodeRecord(Record record, NdefMessageEncoder messageEncoder) {
if (record.getClass() != EmptyRecord.class) {
throw new IllegalArgumentException("Unexpected Record " + record.getClass().getName());
}
return new NdefRecord(NdefConstants.TNF_EMPTY, NdefConstants.EMPTY_BYTE_ARRAY, record.getId(),
NdefConstants.EMPTY_BYTE_ARRAY);
}