@SuppressWarnings({"unchecked", "rawtypes"}) // this is dynamic, don't have concrete classes for the TypeSpec
private TypeSpec<? extends RecordTemplate> toRecordTemplateType(DataSchema schema)
{
if(schema == null) return null;
return new TypeSpec(_bindingResolver.resolveTemplateClass(schema), schema);
}