expressionsIndex = new int[referenceMapping.getNumberOfDatastoreFields()];
if (refDiscrimMapping != null)
{
// Related table has a discriminator
DiscriminatorStrategy strategy = relatedTable.getDiscriminatorMetaData().getStrategy();
if (strategy == DiscriminatorStrategy.CLASS_NAME)
{
HashSet allclasses = new HashSet();
if (clsNames != null)
{