339166 - "resourceContains" causes out of memory errors (revert grep fix for now, until more testing).