See how this little tweak to processIncludedResources helps.