Need to load resource definition before loading scopes.