PersistenceCapable pc = ImplHelper.toPersistenceCapable(toAttach,
getBroker().getConfiguration());
if (pc.pcGetStateManager() instanceof AttachStrategy)
return (AttachStrategy) pc.pcGetStateManager();
Object obj = pc.pcGetDetachedState();
if (obj instanceof AttachStrategy)
return (AttachStrategy) obj;
if (obj == null || obj == PersistenceCapable.DESERIALIZED) {
// new or detached without state
if (_version == null)