Revert "renaming resource to resourceMap"

This reverts commit ca429d4a61568fd2619e75bf7ac58d298b278c7e.