}
manager.flush();
}
private void saveNodeAtc(TreeNode node, ClassificationAtc parentAtc) throws ClipsServerException {
ClassificationAtc atc = new ClassificationAtc();
atc.setGroupcode(node.getCode());
atc.setTitle(node.getTitle());
atc.setParentAtc(parentAtc);
manager.persist(atc);
ArrayList<TreeNode> chidren = node.getChidren();
for (int i = 0; i < chidren.size(); i++) {
TreeNode treeNode = chidren.get(i);
saveNodeAtc(treeNode, atc);