`resourceType` might be null here.