Get a state repository