script.append(id + ".setFieldId('" + getFieldId() + "');\n");
script.append(", fieldId: '" + getFieldId() + "'");
        private String getTreeScript(String id, String requestUrl, String imagesFolder) {            StringBuilder script = new StringBuilder();                        script.append(id + " = new JSDragDropTree();\n");            script.append(id + ".setTreeId('" + id + "');\n");            script.append(id + ".setImageFolder('" + imagesFolder + "');\n");            if (requestUrl != null) {                script.append(id + ".setRequestUrl('" + requestUrl + "');\n");            }                        if (getSaveParameter() != null) {                script.append(id + ".setRequestParameter('" + getSaveParameter() + "');\n");            }                        if (getFieldId() != null) {                script.append(id + ".setFieldId('" + getFieldId() + "');\n");            }            if (getOnComplete() != null) {                script.append(id + ".setOnComplete(" + getOnComplete() + ");\n");            }                        if (getOnError() != null) {                script.append(id + ".setOnError(" + getOnError() + ");\n");            }            if (getMovedClass() != null) {                script.append(id + ".setMovedClass('" + getMovedClass() + "');\n");            }                        script.append(id + ".setIncludeImage(" + isIncludeImage() + ");\n");            script.append(id + ".initTree();\n");                        return script.toString();        }