}
String dbServerHost = jdbcUrl.substring(0, lastSlash);
String catalog = jdbcUrl.substring(lastSlashIdx + 1);
String user = dataSource.getUsername();
String password = dataSource.getPassword();
dbManagement.initialise(dbServerHost, user, password);
Integer expectedSchemaVersion = DbScriptUtils.getCurrentVersion(schemaName);
if (expectedSchemaVersion == null) {
throw new OpenGammaRuntimeException("Unable to find schema version information for " + schemaName + ". Database objects cannot be managed.");
}