class AssetEntryResolversImpl implements AssetEntryResolvers {

    @Override
    public DataFetcher<CompletableFuture<AssetEntry>> getAssetEntryDataFetcher() {
        return environment -> {
            long entryId = getEntryId(environment);
            if (entryId <= 0) {
                return null;
            }

            DataLoader<Long, AssetEntry> dataLoader = environment.getDataLoader(AssetEntryBatchLoader.KEY);
            return dataLoader.load(entryId);
        };
    }

}