* @param object the object being serialized
* @return the hex string containing the serialized hex form of the object
*/
static <T> String objectToHex(TupleBinding<T> binding, T object) {
StringBuilder buffer = new StringBuilder();
TupleOutput tuple = new TupleOutput(new byte[100]);
binding.objectToEntry(object, tuple);
byte[] bytes = tuple.getBufferBytes();
int size = tuple.getBufferLength();
for (int i=0; i < size; i++) {
int lowNibble = (bytes[i] & 0xf);
int highNibble = ((bytes[i]>>4) & 0xf);
buffer.append(Character.forDigit(lowNibble,16));