Wm Trading Networks Java API

I have webMethods Server 4.0.1 with Trading Networks on cloudscape database.
I am trying to write a stand alone java application to talk to Trading networks. I find that there is a class called “Datastore” that takes care of connecting to the TN database. I am not able set all the variables in this class as they are defined as Static Final.
Has anyone worked on creating Stand alone java application for TN?
Any help is greatly appreciated.
Thanks !