class DDMContentResolversImpl implements DDMContentResolvers {

    @Override
    public DataFetcher<CompletableFuture<DDMContent>> getDDMContentDataFetcher() {
        return environment -> {
            long contentId = util.getLongArg(environment, "contentId");
            if (contentId <= 0) {
                return null;
            }

            DataLoader<Long, DDMContent> dataLoader = environment.getDataLoader(DDMContentBatchLoader.KEY);
            return dataLoader.load(contentId);
        };
    }

}