* @throws RepositoryException if there is no {@code DataSource} with the given name
*/
public String getDataBaseType(String logicalName) throws RepositoryException {
synchronized (lock) {
sanityCheck();
DataSourceDefinition def = nameToDataSourceDef.get(logicalName);
if (def == null) {
throw new RepositoryException("DataSource with logicalName " + logicalName
+ " has not been configured");
}
return def.getDbType();
}
}