import java.util.UUID;
import org.apache.log4j.Logger;
-import org.hibernate.collection.spi.PersistentCollection;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import eu.etaxonomy.taxeditor.httpinvoker.RemotingSessionAwareTest;
import eu.etaxonomy.taxeditor.httpinvoker.TestThread;
+
/**
* @author cmathew
* @date 7 Oct 2014
PolytomousKeyNode pkeynode = pkey.getRoot();
-
- PersistentCollection children = (PersistentCollection) pkeynode.getChildren();
+//because of the check for null values in getChildren it isn't a persistent list anymore
+ // PersistentCollection children = (PersistentCollection) pkeynode.getChildren();
PolytomousKeyNode childNode0 = (PolytomousKeyNode)commonService.get(pkeynode.getUuid(), "children", 0);
PolytomousKey subkey1 = CdmBase.deproxy(childNode0.getSubkey(),PolytomousKey.class);
String subkey1title = subkey1.getTitleCache();