if (om == null)
{
return ClassUtils.getValueOfFieldByReflection(object, fmd.getName());
}
StateManager sm = om.findStateManager(object);
FieldManager fm = new SingleValueFieldManager();
if (!fmd.isPrimaryKey())
{
// we expect that primary key field are non null
om.getApiAdapter().isLoaded(sm, fmd.getAbsoluteFieldNumber());
}
sm.provideFields(new int[] {fmd.getAbsoluteFieldNumber()},fm);
return fm.fetchObjectField(fmd.getAbsoluteFieldNumber());
}