See how the sample UCTool project works under-cover by reviewing its source files or by checking them out from SVN at:
https://uctool.svn.sourceforge.net/svnroot/uctool/trunk/uctool-reactor/uctool-sample/