The reign of Duke James in Courland, 1638-1682