Class.forName(driver);
Connection object = DriverManager.getConnection(url, username, password);
OlapConnection connection;
connection = (OlapConnection) DriverManager.getConnection(url, username, password);
final OlapWrapper wrapper = connection;
OlapConnection tmpolapConnection = wrapper.unwrap(OlapConnection.class);
if (tmpolapConnection == null) {
throw new Exception("Connection is null");
}