import PersistentMapping from Globals is deprecated.
using variables other than 'context' in filter expression is deprecated and slower.