Updated

Kristen Davis knows a few things about what Scarlett Johansson has been going through this week.

Five years ago, Davis was a Global Ambassador for the international aid group Oxfam. She was also working as a spokesperson for Ahava, a cosmetics company located in a Jewish settlement in the West Bank, which Oxfam deems to be illegally occupied by Israel.

Oxfam said she had to choose between Ahava and them. After much pushing and pulling, Davis decided to stick with Oxfam and sever her ties with Ahava, and her contract with them was allowed to expire.

Fast forward to this week, when Oxfam announced Johansson's support of the Israeli company SodaStream, operating in a West Bank settlement, was incompatible with her role as an Oxfam Global Ambassador.

This time around, the actress chose to stay with her company and part ways with Oxfam.

Johansson announced Wednesday that she was resigning her Oxfam role because of a "fundamental difference of opinion."

Oxfam said it accepted her resignation.

The international humanitarian organization said Thursday that it believes SodaStream and other businesses operating in Israeli settlements in the West Bank contribute to the "denial of rights of the Palestinian communities that we work to support."

The charity said it opposes all trade from the Israeli settlements, "which are illegal under international law."

Pro-Palestinian activists who advocate consumer boycotts of goods produced in Jewish settlements — which are deemed illegal by much of the international community — have encouraged the public to shun SodaStream. The company's main plant is in an Israeli industrial zone next to the settlement of Maaleh Adumim in the West Bank.

Approximately 500 Palestinians work at the SodaStream factory in the West Bank.

Some 550,000 Israelis live in settlements in the West Bank and east Jerusalem, lands Israel captured in 1967, along with the Gaza Strip. The Palestinians seek all three territories for a future state.

Johansson, who is Jewish, has become a global brand ambassador for SodaStream, and she recently appeared in an attention-grabbing commercial for the company, which has been gaining attention on YouTube and social media sites, and will air on the Super Bowl this Sunday.

The Associated Press contributed to this report.