[WIP] PIM-2372: Fix issues to get common attributes with MongoDB

| Q                   | A
| ------------------- | ---
| Bug fix?            | N
| New feature?        | Y (Get common attributes from MongoDB)
| BC breaks?          | N
| Tests pass?         | ?
| Scenarios pass?     | ?
| Checkstyle issues?  | ?
| Changelog updated?  | N
| Fixed tickets       | PIM-2372, PIM-2360
| Doc PR              |