protected String getTemplatePath (Template template) {
if ((templatePath==null || templatePath.equals("")) && isTemplatePathToReset) {
isTemplatePathToReset = false;
Configuration c = (Configuration)template.getTemplateTarget().getTarget().getAbstractConfigurationRoot();
Hashtable<String, String> ht = new Hashtable<String, String>();
TemplateTarget templateTarget = template.getTemplateTarget();
Target target = templateTarget.getTarget();
for (TemplateTarget templateTarget2 : target.getTemplateTargets()) {
String absoluteRootDir = templateTarget2.getAbsoluteRootDir();
if (absoluteRootDir!=null) {
ht.put(absoluteRootDir, absoluteRootDir);