}
if (instance instanceof PersistentSet) {
HashSet<Object> hashSet = new HashSet<Object>();
PersistentSet persSet = (PersistentSet) instance;
if (persSet.wasInitialized()) {
hashSet.addAll(persSet);
}
return hashSet;
}
if (instance instanceof PersistentList) {