public SFNode deepClone() { SFNode clone = new SFNode(); clone.count = this.count; clone.sf = this.sf; for (String key : children.keySet()) { clone.children.put(key, children.get(key).deepClone()); } return clone; }