adding logic to handle duplicate nm, nmspc_cd in KRIM_PERM_T and KRIM_RSP_T