Make getContexts protected to avoid exposing the array field