class ExpandoTableResolversImpl implements ExpandoTableResolvers {

    @Override
    public DataFetcher<ExpandoTable> createExpandoTableDataFetcher() {
        return environment -> {
            long companyId = util.getLongArg(environment, "companyId");
            String className = util.getStringArg(environment, "className");
            String name = util.getStringArg(environment, "name");

            return expandoTableLocalService.addTable(
                    companyId,
                    className,
                    name);
        };
    }

}