{
RDBMSStoreData sd = (RDBMSStoreData) i.next();
if (sd.getDatastoreContainerObject() != null)
{
// Catalog/Schema match if either managed table not set, or input requirements not set
DatastoreIdentifier identifier = sd.getDatastoreContainerObject().getIdentifier();
boolean catalogMatches = true;
boolean schemaMatches = true;
if (catalog != null && identifier.getCatalogName() != null &&
!catalog.equals(identifier.getCatalogName()))
{
catalogMatches = false;
}
if (schema != null && identifier.getSchemaName() != null &&
!schema.equals(identifier.getSchemaName()))
{
schemaMatches = false;
}
if (catalogMatches && schemaMatches)
{