if (dataMessage instanceof FudgeEncoded) {
data = ((FudgeEncoded) dataMessage).getFudgeEncoded();
} else {
final ByteArrayOutputStream baos = new ByteArrayOutputStream();
final FudgeDataOutputStreamWriter writer = new FudgeDataOutputStreamWriter(getFudgeContext(), baos);
writer.writeFields(dataMessage);
data = baos.toByteArray();
}
getBinaryData().put(identifier, data);
}