/*
* Merges template with data
*/
private JsonJavaObject mergeData(String templatePath, String propertiesPath) throws JsonException{
String template = readFile(templatePath);
FileResourcePropertiesFactory frpf = new FileResourcePropertiesFactory();
Properties props = frpf.readFactoriesFromFile(propertiesPath);
template = ParameterProcessor.process(template, props);
JsonJavaObject templateObj = (JsonJavaObject)JsonParser.fromJson(JsonJavaFactory.instanceEx, template);
return templateObj;
}