Update the use of the Spoon 3.0 API to avoid unmodifiable runtime
exception.