builder.append(String.valueOf(key) + ": '" + value + "'");
if (value.equals("true") || value.equals("false")) { builder.append(String.valueOf(key) + ": " + value); } else { builder.append(String.valueOf(key) + ": '" + value + "'"); }
    private CharSequence generateScript(PageContext context) {        StringBuilder builder = new StringBuilder();                Properties properties = new Properties();        if (getHeight() != null) {            properties.setProperty("height", getHeight().toString());        }                if (getWidth() != null) {            properties.setProperty("width", getWidth().toString());        }                loadConfig(context, properties);                properties.setProperty("mode", "exact");        properties.setProperty("elements", getId());        properties.setProperty("relative_urls", "false");        properties.setProperty("remove_script_host", "true");                Language language = LanguageUtils.getLanguage();        properties.setProperty("language", language.toString());                builder.append("tinyMCE.init({\n");                int index = 1;        for (Object key : properties.keySet()) {            Object value = properties.getProperty((String) key);                        builder.append(String.valueOf(key) + ": '" + value + "'");            if (index < properties.size()) {                builder.append(",\n");            }                        index++;        }                builder.append("\n});");                return builder;    }