EDOC-1098: changed commonid recognition as primary id logic and added id preprocessing util support