}
public void addMainStructure(String action, String params, int naviorder, long fieldvalues_id, boolean isleaf, boolean isopen,
long level_id, String name, long global_id, boolean deleted, Long tooltip_fieldvalues_id) {
try {
Naviglobal ng = getGlobalMenuEntry(global_id);
List<Navimain> mainEntries = ng.getMainnavi();
mainEntries = (mainEntries == null) ? new ArrayList<Navimain>() : mainEntries;
Navimain nm = new Navimain();
nm.setAction(action);
nm.setParams(params);
nm.setComment("");
nm.setIcon("");
nm.setFieldvalues_id(fieldvalues_id);
nm.setIsleaf(isleaf);
nm.setNaviorder(naviorder);
nm.setIsopen(isopen);
nm.setLevel_id(level_id);
nm.setName(name);
nm.setDeleted(deleted);
nm.setGlobal_id(global_id);
nm.setStarttime(new Date());
nm.setTooltip_fieldvalues_id(tooltip_fieldvalues_id);
mainEntries.add(nm);
ng.setMainnavi(mainEntries);
em.merge(ng);
} catch (Exception ex2) {
log.error("addMainStructure", ex2);