Adapter Schema name change


[FONT=Helv][SIZE=2][FONT=Helv][SIZE=2][FONT=Helv][SIZE=2]I writing a service to change schema names for Adapter service and Notifications Dynamically. For this process there are two ways to do
1. Lock the Component (Notifaction/Adapter Service)
2. Create a Deployment set and add elements to it.
So I am looking for services to lock the elements or service to create Deployments set. I stuck at this point
If any had an idea how to do it then please share with me.

Thanks and Regards
Satyam Durvasula