Role execRole = execRoles[i];
insertRole(execRole, session);
insertFunctRole(execRole, funct, execDom.getValueId(), execDom.getValueCd(), session);
}
Role[] createRoles = funct.getCreateRoles();
Domain createDom = domDAO.loadDomainByCodeAndValue(SpagoBIConstants.PERMISSION_ON_FOLDER,
SpagoBIConstants.PERMISSION_ON_FOLDER_TO_CREATE);
for(int i=0; i<createRoles.length; i++) {
Role createRole = createRoles[i];
insertRole(createRole, session);
insertFunctRole(createRole, funct, createDom.getValueId(), createDom.getValueCd(), session);