// make sure we don't already have the instance cached
checkForDuplicateId(id, obj);
// if had embedded sm, null it
if (sm != null)
pc.pcReplaceStateManager(null);
// create new sm
sm = new StateManagerImpl(id, meta, this);
if ((_flags & FLAG_ACTIVE) != 0) {
if (explicit)