@Override
            public Connection getConnection() throws SQLException {
                try {
                    logger.debug("Creating new database connection for pool.");
                    return super.getConnection(environment.getUsername(), environment.getPassword());
                }
                catch (GuacamoleException e) {
                    throw new SQLException("Retrieval of database credentials failed.", e);
                }
            }
Creates a new DynamicallyAuthenticatedDataSource which dynamically
retrieves database credentials from the given JDBCEnvironment each time
a new database connection is needed.

@param environment
    The JDBCEnvironment that should be used to retrieve database
    credentials.

@param driverClassLoader
@param driver
@param url
extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/DynamicallyAuthenticatedDataSource.java