I believe we should leave out the $context here and instead use $category->getContext()