class FunctionSearchService implements LiveSearchService<String> {

    public void reload(final String type,
                       final Command onSuccess) {
        availableFunctionsService
                .call(new ConditionEditorAvailableFunctionsService.Input(path, type))
                .then(result -> {
                    setFunctions(result);
                    onSuccess.execute();
                    return null;
                });
    }

    @Inject public  FunctionSearchService(final ConditionEditorAvailableFunctionsService availableFunctionsService,
                                 final FunctionNamingService functionNamingService);

}