class WebsiteResolversImpl implements WebsiteResolvers {

    @Override
    public DataFetcher<Website> createWebsiteDataFetcher() {
        return environment -> {
            long userId = util.getLongArg(environment, "userId", util.getDefaultUserId());
            String className = util.getStringArg(environment, "className");
            long classPK = util.getLongArg(environment, "classPK");
            String url = util.getStringArg(environment, "url");
            long typeId = util.getLongArg(environment, "typeId");
            boolean primary = util.getBooleanArg(environment, "primary");
            ServiceContext serviceContext = new ServiceContext();

            return websiteLocalService.addWebsite(
                    userId,
                    className,
                    classPK,
                    url,
                    typeId,
                    primary,
                    serviceContext);
        };
    }

}