if (! (value instanceof SpecificFixed)) {
LOG.warn("Not an instance of SpecificFixed");
return null;
}
SpecificFixed fixed = (SpecificFixed) value;
byte[] bytes = fixed.bytes();
try {
byteBuffer.get(bytes, 0, bytes.length);
}
catch (BufferUnderflowException e) {
// LOG.info(e.toString() + " : class=" + clazz.getName() + " length=" + bytes.length);
throw e;
}
fixed.bytes(bytes);
return fixed;
}