target = clone;
}
else if (object instanceof IDetachable)
{
// clone to not detach the original IDetachable (WICKET-5013, 5014)
IDetachable clone = (IDetachable) cloneObject(object);
clone.detach();
target = clone;
}
return objectSizeOfStrategy.sizeOf(target);