PIM-1711 : remove useless findAttributeByCode method