public static void releaseConnectionAfterException(LDAPConnection connection, LDAPException e) {
        if (connection != null && connection.getConnectionPool() != null)
            connection.getConnectionPool().releaseConnectionAfterException(connection, e);
    }
@author Marc Savy {@literal <msavy@redhat.com>}
gateway/engine/core/src/main/java/io/apiman/gateway/engine/impl/LDAPConnectionFactory.java