Prevents scope to filter resources using pathmap.

Change-Id: I01c77c399c76f77ef4a31998bdd8b64001ed6b3a