} else if (dbDialect == DBConstants.DB_DIALECT_HSQLDB) {
if (dbSourceName != null) {
DataSource ds = (DataSource) new InitialContext()
.lookup(dbSourceName);
if (ds != null)
this.connFactory = new HSQLDBConnectionFactory(ds,
containerName, multiDb, valueStorageProvider,
maxBufferSize, swapDirectory, swapCleaner);
else
throw new RepositoryException("Datasource '" + dbSourceName
+ "' is not bound in this context.");
} else
this.connFactory = new HSQLDBConnectionFactory(dbDriver, dbUrl,
dbUserName, dbPassword, containerName, multiDb,
valueStorageProvider, maxBufferSize, swapDirectory,
swapCleaner);
sqlPath = "/conf/storage/jcr-" + (multiDb ? "m" : "s") + "jdbc.sql";
dbInitilizer = defaultDBInitializer(sqlPath);