PIM-2341: Refactor getFullProduct adding a method to build the query