Map<String, Object> options = new HashMap<String, Object>();
for (String optionAttributeName : OPTIONS_ATTRIBUTES_LIST) {
Object value = attributes.get(optionAttributeName);
if (utils.shouldRenderAttribute(value)) {
options.put(optionAttributeName, value);
}
}
return ScriptUtils.toScript(options);