Allow registry to pass context to provider