public static void destroyConnectionProvider() {
        synchronized (providerLock) {
            if (connectionProvider != null) {
                connectionProvider.destroy();
                connectionProvider = null;
            }
        }
    }
Destroys the currennt connection provider. Future calls to
{@link #getConnectionProvider()} will return {@code null} until a new
ConnectionProvider is set, or one is automatically loaded by a call to
{@link #getConnection()}.
xmppserver/src/main/java/org/jivesoftware/database/DbConnectionManager.java