- if(parentElement instanceof Classification){
- children = ((Classification) parentElement).getChildNodes().toArray();
- }
- //taxon node
- if(parentElement instanceof ITaxonTreeNode){
- ITaxonTreeNode treeNode = (ITaxonTreeNode) HibernateProxyHelper.deproxy(parentElement);
- List<TaxonNode> childrenSet = treeNode.getChildNodes();
- HHH_9751_Util.removeAllNull(childrenSet);
- children = childrenSet.toArray();
+// if(parentElement instanceof Classification){
+// children = taxonNodeService.listChildNodesAsUuidAndTitleCache(((Classification)parentElement).getRootNode()).toArray();
+//// children = ((Classification) parentElement).getChildNodes().toArray();
+// }
+// //taxon node
+// if(parentElement instanceof ITaxonTreeNode){
+// ITaxonTreeNode treeNode = (ITaxonTreeNode) HibernateProxyHelper.deproxy(parentElement);
+// List<TaxonNode> childrenSet = treeNode.getChildNodes();
+// HHH_9751_Util.removeAllNull(childrenSet);
+// children = childrenSet.toArray();
+// }
+ List<TaxonNodeDto> childrenList = null;
+
+ if(parentElement instanceof TaxonNode){
+ childrenList = taxonNodeService.listChildNodesAsTaxonNodeDto((TaxonNode)parentElement);
+ }else {
+ childrenList = taxonNodeService.listChildNodesAsTaxonNodeDto((TaxonNodeDto)parentElement);