sqlStmt.setClassLoaderResolver(clr);
if (vmd != null)
{
// Left outer join to value table (so we allow for null values)
SQLTable valueSqlTbl = sqlStmt.leftOuterJoin(sqlStmt.getPrimaryTable(), valueMapping,
valueTable, null, valueTable.getIdMapping(), null, null);
// Select the value field(s)
SQLStatementHelper.selectFetchPlanOfSourceClassInStatement(sqlStmt, getMappingDef,
ownerSM.getExecutionContext().getFetchPlan(), valueSqlTbl, vmd, 0);