Season chicken with salt and pepper. In a large frying pan, melt butter over medium heat. Add shallots and garlic, and saute just til soft. Add chicken and saute about 5 minutes per side, until lightly browned. Add wine & thyme. Cover and simmer 10 minutes. Add apples. Simmer additional 10 minutes. Preheat broiler. Transfer apples and chicken to a casserole dish. Add cream to liquid remaining in frying pan; stir constantly til mixture just comes to a boil. Pour over chicken, sprinkle with cheese and broil til cheese is melted and bubbly.