public void addSubStructure(String action, int naviorder,
long fieldvalues_id, boolean isleaf, boolean isopen, long level_id,
String name, long main_id) {
try {
Navisub ng = new Navisub();
ng.setAction(action);
ng.setComment("");
ng.setIcon("");
ng.setNaviorder(naviorder);
ng.setFieldvalues_id(fieldvalues_id);
ng.setIsleaf(isleaf);
ng.setIsopen(isopen);
ng.setLevel_id(level_id);
ng.setName(name);
ng.setDeleted("false");
ng.setMain_id(main_id);
ng.setStarttime(new Date());
Object idf = PersistenceSessionUtil.createSession();
EntityManager session = PersistenceSessionUtil.getSession();
EntityTransaction tx = session.getTransaction();
tx.begin();