}
else
{
throw new IllegalArgumentException(message(path, "fixed value %1$s is not a String or ByteString", value));
}
FixedDataSchema fixedDataSchema = (FixedDataSchema) dataSchema;
if (fixedDataSchema.getSize() != byteString.length())
{
throw new IllegalArgumentException(message(path,
"ByteString size %1$d != FixedDataSchema size %2$d",
byteString.length(),
fixedDataSchema.getSize()));
}
result = byteString;
break;
case MAP:
DataMap map = (DataMap) value;