NFRecord to Byte[] convertion in java