{
obj = instance.getValueDirect(m_variablesAttribute.getOrdinal());
if (obj instanceof SerializablePropertyMap)
{
SerializablePropertyMap map = (SerializablePropertyMap)obj;
column = ((RelationalPrimitiveMapping)mapping.getAttributeMapping(m_serializedVariablesAttribute)).getColumn();
sqlWork = (SQLWork)work;
if (sqlWork.getTable() == column.getTable())
{
if (column.getType().equals(Primitive.STRING))
{
sqlWork.setInstanceValue(column, map.serializeValues(instance.getUnitOfWork().getInvocationContext()));
}
else
{
sqlWork.setInstanceValue(column, map.serializeValuesToBinary(instance.getUnitOfWork().getInvocationContext()));
}
}
}
}
}