public static void handleException(final Exception cause) {
        if (null == cause) {
            log.info("cause is null");
            return;
        }
        if (isIgnoredException(cause) || null != cause.getCause() && isIgnoredException(cause.getCause())) {
            log.debug("Ignored exception for: {}", cause.getMessage());
        } else if (cause instanceof InterruptedException) {
            log.info("InterruptedException caught");
            Thread.currentThread().interrupt();
        } else {
            throw new ClusterRepositoryPersistException(cause);
        }
    }
@Test
    void assertHandleException() {
        ZookeeperExceptionHandler.handleException(null);
        ZookeeperExceptionHandler.handleException(new NoNodeException(""));
        ZookeeperExceptionHandler.handleException(new Exception(new NoNodeException("")));
        try {
            ZookeeperExceptionHandler.handleException(new Exception(""));
            fail("must be failed handle new Exception().");
            // CHECKSTYLE:OFF
        } catch (final Exception ex) {
            // CHECKSTYLE:ON
            assertThat(ex, instanceOf(ClusterRepositoryPersistException.class));
        }
    }