try {
String fname = file.getName().toLowerCase();
final Map<String, String> res;
is = openInputStream(file);
if (fname.endsWith("sql")) {
res = new PlainSqlQueriesParser().parse(is, queriesFileEncoding);
} else if (fname.endsWith("json")) {
Reader re = new InputStreamReader(is, queriesFileEncoding);
Type mapType = new TypeToken<LinkedHashMap<String, String>>(){}.getType();
res = new Gson().fromJson(re, mapType);
} else if (fname.endsWith("properties")) {