private static String quote(String str) { if (str.indexOf(" ") > -1 || str.indexOf(":") > -1) { return JSONUtils.quote(str); } else { return str; } }