LOG.debug( "replacing alias: {}, for: {} ", tableAlias, table.getName() );
}
String currentTableName = createTableDefFor( schemaName, null, tap.getIdentifier(), tap.getSinkFields(), null, null );
TableDef tableDef = schemaDef.getTable( currentTableName );
TapTable tapTable = subSchema.addTapTableFor( tableDef ); // add table named after flow
LOG.debug( "adding table:{}", tableDef.getName() );
if( tableAlias != null && !tapTable.getName().equals( tableAlias ) )
{