class ClusterMembershipTransactionLogger {

    @VisibleForTesting
    static String doFormat(ClusterMembershipEvent event) {
        if (event instanceof ClusterMembershipChangeEvent) {
            return doFormat((ClusterMembershipChangeEvent) event);
        }
        if (event instanceof LeaderElectionChangeEvent) {
            return doFormat((LeaderElectionChangeEvent) event);
        }
        return null;
    }

}