class ExpandoTableResolversImpl implements ExpandoTableResolvers {

    @Override
    public DataFetcher<CompletableFuture<ExpandoTable>> getExpandoTableDataFetcher() {
        return environment -> {
            long tableId = getTableId(environment);
            if (tableId <= 0) {
                return null;
            }

            DataLoader<Long, ExpandoTable> dataLoader = environment.getDataLoader(ExpandoTableBatchLoader.KEY);
            return dataLoader.load(tableId);
        };
    }

}