replace resource "application", with global "context"