fm.setStateManager(sm);
fm.detachFields(fields);
}
if (!Boolean.FALSE.equals(sm.getMetaData().usesDetachedState()))
detachedPC.pcSetDetachedState(getDetachedState(sm, fields));
if (!_copy)
sm.release(false, !_copy);
if (detSM != null)
detachedPC.pcReplaceStateManager(detSM);
return detachedPC;