if (table == null) {
final MutableRef<Table> tableRef = new MutableRef<Table>();
dataContext.executeUpdate(new UpdateScript() {
@Override
public void run(UpdateCallback callback) {
TableCreationBuilder tableBuilder = callback.createTable(schema, sheetName);
for (InputColumn<?> inputColumn : columns) {
tableBuilder.withColumn(inputColumn.getName());
}
tableRef.set(tableBuilder.execute());
}
});
table = tableRef.get();
}
return table;