Remove use of getResources(null) because all resources need a realm.