// Convert DataMap into DataSchema
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
JacksonDataCodec codec = new JacksonDataCodec();
try
{
codec.writeMap(map, outputStream);
}
catch (IOException e)
{
// This should never occur
throw new IllegalStateException(UNEXPECTED_IOEXCEPTION + map, e);