// Join the value table on the owner ID column.
DatastoreContainerObject filteredValueTable = storeMgr.getDatastoreClass(filteredValueType.getName(), stmt.getClassLoaderResolver());
stmt.newTableExpression(filteredValueTable, valueRangeVar);
ScalarExpression ownerExpr = ownerMapping.newScalarExpression(stmt,ownerTe);
DatastoreIdentifier containerRangeVar = mapRangeVar;
if( stmt.getTableExpression(containerRangeVar) == null )
{
containerRangeVar = valueRangeVar;
}
ScalarExpression ownerValueExpr = this.ownerMapping.newScalarExpression(stmt,stmt.getTableExpression(containerRangeVar));