Hi Shirish, In the SDK download you will see a samples folder. In there you should find some examples on using the SDK.
If you take a look at the file VersionControlSample.java for some example code and let me know how you get on.
Many thanks,
Martin.
http://www.woodwardweb.com