James Caldwell played a prominent part in a revolution that ended in what year?