class DLFileEntryResolversImpl implements DLFileEntryResolvers {

    @Override
    public DataFetcher<CompletableFuture<DLFileEntry>> getDLFileEntryDataFetcher() {
        return environment -> {
            long fileEntryId = getFileEntryId(environment);
            if (fileEntryId <= 0) {
                return null;
            }

            DataLoader<Long, DLFileEntry> dataLoader = environment.getDataLoader(DLFileEntryBatchLoader.KEY);
            return dataLoader.load(fileEntryId);
        };
    }

}