org.apache.hadoop.zebra.schema.Schema schema = new org.apache.hadoop.zebra.schema.Schema();
ResourceSchema.ResourceFieldSchema[] fields = rSchema.getFields();
for( ResourceSchema.ResourceFieldSchema field : fields ) {
String name = field.getName();
ColumnType type = toTableType( field.getType() );
org.apache.hadoop.zebra.schema.Schema cSchema = convertFromResourceSchema( field.getSchema() );
if( type == ColumnType.MAP && cSchema == null ) {
cSchema = new org.apache.hadoop.zebra.schema.Schema();
cSchema.add( new org.apache.hadoop.zebra.schema.Schema.ColumnSchema( "", ColumnType.BYTES ) );
}