{
if (!(dataTypeFactory instanceof IDbProductRelatable))
{
return null;
}
IDbProductRelatable productRelatable = (IDbProductRelatable) dataTypeFactory;
String databaseProductName = metaData.getDatabaseProductName();
Collection validDbProductCollection = productRelatable.getValidDbProducts();
if (validDbProductCollection != null)
{
String lowerCaseDbProductName = databaseProductName.toLowerCase();
for (Iterator iterator = validDbProductCollection.iterator(); iterator.hasNext();) {
String validDbProduct = ((String) iterator.next()).toLowerCase();