SessionContainer permSess = sessCont.getPermanentContainer();
IEngUserProfile profile = (IEngUserProfile)permSess.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
IEngineDAO dao=DAOFactory.getEngineDAO();
dao.setUserProfile(profile);
if (mod.equalsIgnoreCase(AdmintoolsConstants.DETAIL_INS)) {
dao.insertEngine(engine);
} else {
dao.modifyEngine(engine);
}
} catch (EMFUserError e){