DatastoreClass currentTable = table;
while (currentTable != null)
{
// Add the required fields (and any discriminator) present in this table
currentTable.provideMappingsForFields(consumer, fieldMetaData, true);
currentTable.provideDiscriminatorMappings(consumer);
VersionMetaData currentVermd = currentTable.getVersionMetaData();
if (currentVermd != null)
{
if (currentVermd.getFieldName() == null)
{