We are adding lot of xml viewer webparts through a sharepoint provider hosted app. We are using CSOM in our app model. We want to add webpart through CSOM code and configure it ? Can somebody share the piece of code to adding a webpart and configure it using CSOM code?