String templatesPath = GetterUtil.getString(
themeElement.elementText("templates-path"),
rootPath.concat("/templates"));
templatesPath = themeContextReplace.replace(templatesPath);
templatesPath = StringUtil.safePath(templatesPath);
themeContextReplace.addValue("templates-path", templatesPath);
theme.setTemplatesPath(templatesPath);