Preheat oven to 350 degrees. Spread the cubed bread on a cookie sheet and bake in the oven for 5 to 7 minutes tossing once in between so that they are evenly toasted. Transfer toasted bread to a large bowl. In a large skillet cook the sausage, onions, and mushrooms over medium heat, stirring and breaking up lumps until evenly browned. Add the celery, sage, rosemary, and thyme and continue to cook for 2 minutes to blend flavors. Pour sausage mixture over the bread in the bowl. Mix in chopped apples, dried cranberries, parsley, and egg. If baking on the side, put mixture into casserole dish and drizzle with stock. Spoon into casserole dish and tent with foil. Bake for 40 minutes then remove foil and cook for an additional 15 minutes. If stuffing a bird, drizzle with stock and melted butter and spoon into turkey to loosely fill.