[LMAG] New entity ID generator