if (StringUtils.isEmpty(name)) {
return null;
}
String beginQuote = loc.getProperty(DatabaseLocation.DRIVER_BEGIN_QUOTE);
String endQuote = loc.getProperty(DatabaseLocation.DRIVER_END_QUOTE);
BeginEndQuote quotes = (beginQuote != null && endQuote != null)
? new BeginEndQuote(beginQuote, endQuote) : null;
String driverClass = loc.getProperty(DatabaseLocation.DRIVER_CLASS_PROPERTY);
DriverDescriptor driver = null;
if (StringUtils.isEmpty(driverClass)) {
driver = OdbcDriverDescriptorFactory.createDescriptor(name, quotes);
}