class DDMContentResolversImpl implements DDMContentResolvers {

    @Override
    public DataFetcher<DDMContent> updateDDMContentDataFetcher() {
        return environment -> {
            long contentId = util.getLongArg(environment, "contentId");
            String name = util.getStringArg(environment, "name");
            String description = util.getStringArg(environment, "description");
            String data = util.getStringArg(environment, "data");
            ServiceContext serviceContext = new ServiceContext();

            return ddmContentLocalService.updateContent(
                    contentId,
                    name,
                    description,
                    data,
                    serviceContext);
        };
    }

}