public static String readTemplate(String root, String template) throws IOException {
		if (root == null) {
			return readTemplate(template);
		}
		String settingsFile = root + "/" + Defaults.TemplateDir + "/" + template + Defaults.JsonFileExtension;
		return readFileFromClasspath(settingsFile);
	}
public static String readTemplate ( String root , String template ) throws IOException { if ( root == null ) { return readTemplate ( template ) ; } String settingsFile = root + "/" + Defaults . TemplateDir + "/" + template + Defaults . JsonFileExtension ; return readFileFromClasspath ( settingsFile ) ; }
Read a template
@param root dir within the classpath
@param template template name (.json will be appended)
@return The template content
@throws IOException if the connection with elasticsearch is failing