}
public static <T> String getTableNameForModel(Class<T> modelClass){
if( modelClass.isAnnotationPresent(TableName.class)){
final TableName tableAnnotation = modelClass.getAnnotation(TableName.class);
return tableAnnotation.table();
} else {
throw new IllegalArgumentException("Must provide the return type Model class annotated by @TableName on class " + modelClass.getName());
}
}