if (vm1.getEmbeddedMapping() != null) {
if (em instanceof StateManagerImpl) {
em1 = store.getContext().embed(null, null, em, vm1);
idx = toObjectValue1(em1, vm1, val, store, fetch, cols, idx);
} else if (em instanceof ObjectIdStateManager) {
em1 = new ObjectIdStateManager(null, null, vm1);
idx = toObjectValue1(em1, vm1, val, store, null,
getColumns(fms[i]), idx);
}
if (em1 != null) {
cval = em1.getManagedInstance();