private MType getMType(Type type) {
List<MFieldSchema> fields = new ArrayList<MFieldSchema>();
if(type.getFields() != null) {
for (FieldSchema field : type.getFields()) {
fields.add(new MFieldSchema(field.getName(), field.getType(), field.getComment()));
}
}
return new MType(type.getName(), type.getType1(), type.getType2(), fields);
}