class ClassNameResolversImpl implements ClassNameResolvers {

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

            DataLoader<Long, ClassName> dataLoader = environment.getDataLoader(ClassNameBatchLoader.KEY);
            return dataLoader.load(classNameId);
        };
    }

}