private static IRiakPreCommitHook LoadPreCommitHook(RpbCommitHook hook)
        {
            if (hook.modfun == null)
            {
                return(new RiakJavascriptCommitHook(hook.name.FromRiakString()));
            }

            return(new RiakErlangCommitHook(hook.modfun.module.FromRiakString(),
                                            hook.modfun.function.FromRiakString()));
        }
 private static IRiakPostCommitHook LoadPostCommitHook(RpbCommitHook hook)
 {
     return(new RiakErlangCommitHook(
                hook.modfun.module.FromRiakString(),
                hook.modfun.function.FromRiakString()));
 }