PIM-1711 : change visibility of getCodeToAttributes to protected, remove
it from FlexibleEntityRepositoryInterface