private AstScript convert(ModelDescription model) {
assert model != null;
AstModelDefinition<?> def;
if (model instanceof TableModelDescription) {
TableModelDescription tableModel = (TableModelDescription) model;
AstAttribute cacheSupport = generateCacheSupport(tableModel);
if (cacheSupport == null) {
def = RecordModelGenerator.generate(tableModel);
} else {
def = RecordModelGenerator.generate(tableModel, cacheSupport);