Role testRole = testRoles[i];
insertRole(testRole, session);
insertFunctRole(testRole, funct, testDom.getValueId(), testDom.getValueCd(), session);
}
Role[] execRoles = funct.getExecRoles();
Domain execDom = domDAO.loadDomainByCodeAndValue(SpagoBIConstants.PERMISSION_ON_FOLDER,
SpagoBIConstants.PERMISSION_ON_FOLDER_TO_EXECUTE);
for(int i=0; i<execRoles.length; i++) {
Role execRole = execRoles[i];
insertRole(execRole, session);
insertFunctRole(execRole, funct, execDom.getValueId(), execDom.getValueCd(), session);