Project Template Declaration while Project Area Creation programmatically.

How to declare Project Templates along with Process Template while Project Area creation through code.
IProcessDefinition processDefinition = iProcessItemService.findProcessDefinition(processId, IProcessItemService.ALL_PROPERTIES , MONITOR);
The above method only has argument for Process Template. programmatically
Please let me know.
Thanks
Vab.
Accepted answer

The code to deploy and find templates can be found here: https://rsjazz.wordpress.com/2013/09/18/deploying-templates-and-creating-projects-using-the-plain-java-clients-library/