Resultat resultat=new Resultat();
try{
tx.begin();
if((this.find(SysUnite.class,sysUnite.getIdUnite(), em))==null){
SysUnite sysUniteFind=(SysUnite)this.find(SysUnite.class,sysSousUnite.getId().getIdSousUnite(),em);
SysTypUnite sysTypUniteFind=sysUniteFind.getSysTypUnite();
SysTypUnite sysTypUnite= new SysTypUnite(ToolsDao.idTypAutresUnites+"_"+sysTypUniteFind.getIdTypUnite());
sysTypUnite.setLibelle(sysTypUnite.getIdTypUnite().replace("-"," "));
sysTypUnite.setIsInter("False");
sysUnite.setSysTypUnite(sysTypUnite);
/* Verifie si unite existe avant de l'inserer */
if((this.find(SysTypUnite.class,sysUnite.getSysTypUnite().getIdTypUnite(),em))==null){
this.persist(sysUnite.getSysTypUnite(), em);
}