public String getTemplateSourcePath(String templateName, int siteId) {
String sourcePath = null;
JahiaTemplatesPackage pkg = getTemplatePackage(siteId);
if (pkg != null && pkg.getTemplateMap().containsKey(templateName)) {
sourcePath = pkg.lookupTemplate(templateName).getFilePath();
}
if (null == sourcePath) {
logger
.warn("Unable to lookup the source path for the template named '"
+ templateName + "' in the site with ID=" + siteId);